getOut() should only used when you use a InOut exchange (pattern) which is not the case here. Typically, this occurs if you use a from(jetty, cxf, mina, netty) component.
Use exchange.getIn().setBody(inputStream) in your case. On Wed, Oct 17, 2012 at 6:19 AM, rajivbandaru <rajivband...@gmail.com>wrote: > Hi, > > I have the following route that listens to messages on the vm q and then > ftp's the content of that file to a ftp server, simple. > > <from uri="vm:vq3"/> > <log message=""dyna ftp log" ${body}"/> > <bean ref="pdfReader"/> > <log message=""After body replace" ${body}"/> > <to > uri="ftp://admin@sdqdcstgapp12 > /pub/incoming/test?password=pass&binary=true"/> > > What bean does is puts the pdf binary content into the body using the > exchange.getOut().setBody(inputStream); > > Problem is that file is written on the ftp server with no contents, I mean > a > empty file. What am I doing wrong? Appreciate your thoughts. > > Thank you > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-FTP-Producer-Issue-tp5721157.html > Sent from the Camel Development mailing list archive at Nabble.com. > -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com