Hello All,

In my case I have large text file with only one line and I have to cut this
line by number of bytes (6155).
How to do it in Camel?

e.g. java code 

 int SIZE = 6155;

byte[] buff;
                
                byte[] buff;
                try (BufferedInputStream inputStream = new
BufferedInputStream(new java.io.FileInputStream(new File("file")))) {
                    buff = new byte[SIZE];
                    while (inputStream.read(buff, 0, SIZE) == SIZE) {
                        String line = new String(buff);
//next action...
                    }
                }


Thank you for any hint.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Large-file-with-one-line-to-cut-by-number-of-bytes-tp5769551.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to