In your java method readFileStream
public void "readFileStream(FileInputStream is) {
.. read the file in chunks as you wish
}
You can also look at the splitter eip in streaming mode, and provide
some expression that reads X chunks of bytes or split the big file in
X number of lines or something.
There is a tokenizer that can split by a token such as line terminator
and group N lines.
On Wed, Nov 18, 2015 at 3:26 PM, kikou1984 <[email protected]> wrote:
> Thank you for the answer
>
> I didn't really understand, how i can i add a parameter to a bean ? ( Also
> should i keep the property CamelCachedOutputStreamBufferSize ? )
>
> Can you give me an example please.
>
> Thank you.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Is-There-a-way-to-treat-a-large-file-tp5774055p5774059.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