You can just use FileInputStream or File etc as the parameter in your readBean then the file is not loaded into memory.
Also there is the stream component but its not exactly the same as the file component http://camel.apache.org/stream On Wed, Nov 18, 2015 at 3:00 PM, kikou1984 <[email protected]> wrote: > I m using apache Camel to treat files. > > However, i m asking if i can split a file depending on the number of byte. > > For exemple , if i have a file with a size like 1 GO, is that possible to > read it by block of 10 MO. (with a parameter that defines the size of a > block) > > Is there a component Camel EIP able to do this ? > > I have tried with stream-caching but nothing happened. > > <camelContext xmlns="http://camel.apache.org/schema/spring" > trace="true"> > > <properties> > <property key="CamelCachedOutputStreamBufferSize" value="1024"/> > </properties> > > > <route id="READ-FILE-STREAM-CACHE" streamCache="true"> > <from uri="file:src/data?noop=true"/> > <bean ref="readBean" method="readFileStream"/> > <to uri="file:src/out"/> > </route> > > </camelContext> > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Is-There-a-way-to-treat-a-large-file-tp5774055.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
