Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When consuming files (downloading) you must use type conversation to either String or to InputStream for ASCII and BINARY file types.
We will improve this in In Camel 1.4 so it hopefully works out-of-the-boxthis is fixed, as there are build in type converters for the ASCII and BINARY file types, meaning that you do not need the convertBodyTo expression.

Also in Camel 1.3 since setNames is default false then you must explicitly set the filename using the setHeader expression when consuming from FTP directly to File.
The code below illustrates this:

...