thanks Claus, if I transform using simple predicate the map value gets converted into String and get sent as File contents, in this case file content is "C:/Temp/Test.txt". So I had to write a bean to convert this using FileInputStream and I am able to successfully send over. But this original file is lost in the subsequent endpoints. for ex.,
<from uri="vm:message"> <bean ref="converttoinputStream"/> /* convert the value in hashmap into File */ <to uri="{{sftp:remoteServer}}" /> /* file moves to remote server successfully */ <bean ref="businessProcess" /> <to uri="C:/Temp/Complete"/> /* This endpoint fails as the CamelFileNameProduced now refers to the path in the remote server, which cause this route fail while moving the file to completed dir in local server */ do I have to create another bean(after the file is sent over to remote) to move the files around locally? -- View this message in context: http://camel.465427.n5.nabble.com/convertBody-To-SFTP-component-tp5752815p5752998.html Sent from the Camel - Users mailing list archive at Nabble.com.