On Wed, Oct 17, 2012 at 1:11 PM, rajivbandaru <rajivband...@gmail.com> wrote: > I tried exchange.getIn().setBody(inputStream) and same result, empty file, it > did not work. >
You log the message before uploading to the ftp server. The stream is most likely not re-readable and therefore you see empty file. Either avoid logging the body. Or use a stream that is re-readable out of the box (some of the in memory byte arrays are). Or enable stream caching in Camel, and let Camel help you. http://camel.apache.org/stream-caching.html > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-FTP-Producer-Issue-tp5721157p5721178.html > Sent from the Camel Development mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen