Hi All,
I am trying to uncompress a gzipped file using the following route
<camel:route>
<camel:from
uri="file://c:/foo/downloaded?recursive=true&delete=true"/>
<camel:unmarshal>
<camel:gzip/>
</camel:unmarshal>
<camel:to
uri="file://c:/foo/uncompressed?fileName=${file:parent}/${file:name.noext}.log"
/>
</camel:route>
However I am getting this exception..
java.util.zip.ZipException: incomplete literal/length tree
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at org.apache.camel.util.IOHelper.copy(IOHelper.java:105)
at org.apache.camel.util.IOHelper.copy(IOHelper.java:92)
at
org.apache.camel.impl.GzipDataFormat.unmarshal(GzipDataFormat.java:51)
I have checked with 7zip and I am able to open the files located in
c:/foo/downloaded and the properties (according to 7zip) of the compressed
file is gzip.
What am I doing wrong?
Thanks, Dan.