Hi,

Current camel marshal and unmarshal are dealing with the stream not the file. I'm afraid you have to use the fileName header yourself to change the file name.

On Wed Oct 19 21:30:10 2011, ebinsingh wrote:
Hi All,

I am trying to Marshal and Unmarshal using the zip format.
When I marshal the files to a Zip format, the file name does not changed
though I see it compressed in the output folder. I was able to change the
name using the fileNameOption to *.zip.

But this created a problem when I try to unmarhsal the file and if I used
the fileName option as mentioned above, the unmarshaled file (Though
uncompressed) has the file name as *.zip.

Please help resolve this issue. I need to marshal a file and to it's
zipformat witht he file name as (*.zip) and then unmarshal it to it's
original fileName.

Thanks&  regards,
Ebe

--
View this message in context: 
http://camel.465427.n5.nabble.com/Marshal-and-Unmarshal-files-tp4917704p4917704.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to