>From personal experience any activities related to file component tend to try to load entire file into memory. You could perhaps fiddle around by converting it to an input stream but then you get into an issue of making sure that you don't read an entire file into memory before actually converting it.
I'd suggest avoiding using camel here at all for the sake of retaining fine grained control over streaming process. At most you could wrap it in a processor and be done with it. Otherwise you'll start programming with routes, which is something you'd want to avoid. On Fri, Oct 23, 2020, 17:05 Site Register <site.regis...@ymail.com.invalid> wrote: > Hi Camel Users, > I have a 4G json array file need to load into database. How can I leverage > Camel to stream the file and split into json? > I had tried to use "stream:file" but it was reading line by line not split > into json. > I leveraged gson streaming to read and insert into the database in java > application which took about 3 minutes. However, I would like to check if > there is a way to leverage camel pipeline for the same purpose. > Thank you,