camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel File - Streaming
Date Thu, 26 Mar 2015 06:14:07 GMT
Hi

Just use Camel's type converter to get the file as java.io.File or
FileInputStream etc.
http://camel.apache.org/type-converter.html

On Wed, Mar 25, 2015 at 7:11 PM, contactreji <contactreji@gmail.com> wrote:
> Can I stream a file's content into camel route using File Component?
>
> I have a huge json file which needs to be processed by a java logic inside a
> processor. How can I read the file and stream it as FileInputStream into my
> java processor?
>
> Cheers
> Reji
>
>
>
> -----
> Reji Mathews
> Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & Jboss
Fuse ESB | Mule ESB )
> LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a
> Twitter - reji_mathews
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-File-Streaming-tp5764783.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message