You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Hilde <hi...@yahoo.de> on 2012/05/10 13:20:18 UTC
How to save a File from Body to disk
Hi folks!
The intention is to save a file from the message body to a directory on the
file system.
Unfortunately I am not able to save a file that sits inside the body to save
to disk via file component. What I am doing wrong?
<camel:endpoint id="errorFileMove"
uri="file://[[configDir]]/.error?fileName=${file:name.noext}"/>
<camel:route>
...
<camel:setBody>
<camel:simple>${headers.originialFile}</camel:simple>
</camel:setBody>
<camel:to ref="errorFileMove"/>
</camel:route>
At the beginning after the file consumer has detected the file it is saved
to the message header
and in the end the body is equiped with that header in order to save the
file to disk via the file component. It does not work.
Cheers
Hilde
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-save-a-File-from-Body-to-disk-tp5699895.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to save a File from Body to disk
Posted by Hilde <hi...@yahoo.de>.
Please ignore this posting because I caused a typing error!
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-save-a-File-from-Body-to-disk-tp5699895p5700096.html
Sent from the Camel - Users mailing list archive at Nabble.com.