camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamalissimo <roman.janu...@gmail.com>
Subject Upload file - How to pass InputStream to Camel's route
Date Mon, 25 Mar 2013 13:08:32 GMT
Hi everyone,

lately, I was working on @POST Consumer which was able to upload a file(
link
<http://camel.465427.n5.nabble.com/Send-file-via-POST-request-td5728674.html> 
). It was really challenging but it still has one "bug". I am not able to
directly upload file from my local drive. Firstly I have to upload file to
server where Karaf runs and after that I pass a variable with path to this
file and I don't like this approach 

I would like to pass the file as an InputStream to my route. I am aware of
stream component but I think I am using different approach to use it.

As you can notice at my  route
<http://camel.465427.n5.nabble.com/Send-file-via-POST-request-td5728674.html>  
I am using Apache's HTTP Client to perform the @POST request and now I can
pass an InputStream to it. 

My question how can I pass InputStream to my route?


Thanks

-Br, Roman



--
View this message in context: http://camel.465427.n5.nabble.com/Upload-file-How-to-pass-InputStream-to-Camel-s-route-tp5729752.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message