Hi

That is because you have enabled stream caching
http://camel.apache.org/stream-caching.html

It has a overflow to disk spool.

The file component is streaming out of the box. As it just routes the
java.io.File handle.
So you dont need the stream cache.

And with Camels type converter system you can just grab that message
body as a InputStream / FileInputStream to be in streaming mode.


On Thu, May 30, 2013 at 3:01 PM, bendg25 <[email protected]> wrote:
> Hi
>
> i want to stream in files from a directory.  The stream:file notation seems
> to be for targeting one file for streaming in.
>
> I want to target a directory to poll, and when a file is detected have it
> streamed in.  At the moment, if the file size is over 64kb, Camel is
> creating a tmp file.  If the file is < 64Kb, Camel seems to read the entire
> file into memory straight away.
>
> Can anyone help?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/file-component-and-streaming-tp5733496.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to