Hi The reason is that there has not been a need for this .. yet. And we have not heard of good use cases for such a reason.
You can build your own split expression to split in byte chunks and use that with the splitter. Just create something that returns an iterator. And your example also seems a bit bogus, why would you split a file in 1024 bytes. Most often you would have either line terminators, or some special start/end byte combinations to denote when a record starts/ends (like HL7 has etc). On Wed, May 31, 2017 at 12:21 AM, onders <ondersezgin+camelu...@gmail.com> wrote: > Hi, > > Split eip supports tokenizing by a delimiter and grouping as below; > > from("file:inbox") > .split().tokenize("\n", 1000).streaming() > .to("activemq:queue:order"); > > Is there a specific reason why we don't have such like. > > from("file:inbox") > .split().tokenizeByByteSize(1024, 1000).streaming() > .to("activemq:queue:order"); > > where 1024 is a length of byte to read from input stream? > > Cheers > Onder > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/split-by-byte-chunks-tp5801398.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