Hi Roman, Yes, this is doable and is in fact quite simple.
Just add an argument of type DataHandler or InputStream to the method signature, and annotate it with @Multipart, e.g. @GET @Path("/{myServerHost}/upload") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadFile(@PathParam("myHost") String knowledgetreeHost, @QueryParam("myPort") String knowledgetreePort, @QueryParam("user") String user, @QueryParam("password") String password, @QueryParam("file") String file, @Multipart("file_binary") DataHandler binary) { } Make sure your request is a standard HTTP Multipart request that contains a body part with name = "file_binary". More info here: http://cxf.apache.org/docs/jax-rs-multiparts.html. Regards, *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Program Manager | Apache Camel Committer http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Mon, Mar 25, 2013 at 1:51 PM, jamalissimo <roman.janu...@gmail.com>wrote: > To be more specific, on client side there is classic form for uploading > files > which sends data to my service via @GET request. I can handle variables but > I don't now how to handle file which comes with variables. > > -Br, Roman > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Upload-file-How-to-pass-InputStream-to-Camel-s-route-tp5729752p5729756.html > Sent from the Camel - Users mailing list archive at Nabble.com. >