On Wed, Apr 9, 2014 at 11:27 AM, bbk <[email protected]> wrote: > Hi > > The problem is when I do on the large files: > - exchange.getIn().getBody(InputStream.class)
> - exchange.getIn().getBody(String.class) here is your problem as you convert the payload to a String which reads in the entire file to memory. Do NOT do that. Use the other one where you convert it to an input stream, then you can access the file using streaming mode. > ... > > So, how can I resolve this problem? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Java-heap-space-with-FILE-producer-and-larges-files-tp5749845p5749990.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
