Re: Reading Binary Files and Passing to HTTP Component

2016-07-14 Thread manishpillai1540
Hi, Thanks for the reply Yes i have created a dummy web service to test it. After apply few patches i have fixed the issue with the following code snippet. package com.camelinaction; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.Processor; i

Re: Reading Binary Files and Passing to HTTP Component

2016-07-14 Thread Eduardo Raupp
are you the owner of the rest endpoint? If yes, could you show how is it? Configs and what it expects. 2016-07-14 8:56 GMT-03:00 manishpillai1540 : > Hi All, > > I am facing a similar issue following is the code snippet to send form data > to a legacy web service : > > public static void main(St

Re: Reading Binary Files and Passing to HTTP Component

2016-07-14 Thread manishpillai1540
Hi All, I am facing a similar issue following is the code snippet to send form data to a legacy web service : public static void main(String[] args) throws Exception{ CamelContext camelContext =new DefaultCamelContext(); try { camelContext.addRoutes(new RouteBuilder(

Re: Reading Binary Files and Passing to HTTP Component

2010-06-20 Thread Nick Heudecker
https://issues.apache.org/activemq/browse/CAMEL-2833 Patch included. On Sat, Jun 19, 2010 at 2:46 AM, Claus Ibsen wrote: > On Sat, Jun 19, 2010 at 9:58 AM, Willem Jiang > wrote: > > Hi, > > > > I don't think current camel-http support the multipart/form-data out of > box, > > as the HttpProduc

Re: Reading Binary Files and Passing to HTTP Component

2010-06-19 Thread Nick Heudecker
Thanks for the prompt response. I'm working on the patch now. On Sat, Jun 19, 2010 at 2:46 AM, Claus Ibsen wrote: > On Sat, Jun 19, 2010 at 9:58 AM, Willem Jiang > wrote: > > Hi, > > > > I don't think current camel-http support the multipart/form-data out of > box, > > as the HttpProducer will

Re: Reading Binary Files and Passing to HTTP Component

2010-06-19 Thread Claus Ibsen
On Sat, Jun 19, 2010 at 9:58 AM, Willem Jiang wrote: > Hi, > > I don't think current camel-http support the multipart/form-data out of box, > as the HttpProducer will try to turn message body into an input stream if > the http method is POST. > Ah yeah we should most likely support FileRequestEnt

Re: Reading Binary Files and Passing to HTTP Component

2010-06-19 Thread Willem Jiang
Hi, I don't think current camel-http support the multipart/form-data out of box, as the HttpProducer will try to turn message body into an input stream if the http method is POST. Please fill a JIRA for it , and you can write a processor to call the HttpClient yourself to send this kind of m