camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: convertBody - To SFTP component
Date Thu, 26 Jun 2014 05:19:01 GMT

Camel allows to send the message body as-is over FTP (either if its
text based or binary), the latter assum it can be read as input

Camel uses type converters for this.

So if you want Camel to send a file to a ftp server you can just keep
the data as a String, and it will upload the data as text. You can use
the Exchange.FILE_NAME header if you want to give the file a fixed

See more details at

On Wed, Jun 25, 2014 at 10:42 PM, eswar <> wrote:
> hi -
> I have a message with body content with string value of file name and
> directory in it. That I need to send to a different server using sftp
> component. I am sure we need to convert the message body to a File class to
> be able to send it using the sftp, do we need to scan through the file to
> convert this or is there an alternative to this ?please suggest.
> thanks
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message