camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel FTP Producer Issue
Date Wed, 17 Oct 2012 12:49:10 GMT
On Wed, Oct 17, 2012 at 1:11 PM, rajivbandaru <> 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.

> --
> View this message in context:
> Sent from the Camel Development mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message