Re: Apache Camel Jetty Component: File upload request always has empty body

2011-07-13 Thread Claus Ibsen
Hmmm You can try to load the message content right after jetty from jetty convertBodyTo(String.class) This force the content to be loaded into memory as a String. If you need a byte[] then you can possible do convertBodyTo(byte[].class) On Wed, Jul 13, 2011 at 1:56 PM, Parsa Ghaffari wr

Re: Apache Camel Jetty Component: File upload request always has empty body

2011-07-13 Thread Parsa Ghaffari
Well I'm calling context.setStreamCache(true); so I believe that's not the issue. Thanks anyways. On Wed, Jul 13, 2011 at 3:59 PM, Claus Ibsen wrote: > Hi > > On the camel-jetty wiki page there is a notice about stream based > http://camel.apache.org/jetty > > Maybe you hit this issue. > > > On

Re: Apache Camel Jetty Component: File upload request always has empty body

2011-07-13 Thread Claus Ibsen
Hi On the camel-jetty wiki page there is a notice about stream based http://camel.apache.org/jetty Maybe you hit this issue. On Wed, Jul 13, 2011 at 1:24 PM, Parsa Ghaffari wrote: > Hi folks, > > I'm using Akka's Camel module to build an endpoint to handle file uploads. > > The arriving reques

Apache Camel Jetty Component: File upload request always has empty body

2011-07-13 Thread Parsa Ghaffari
Hi folks, I'm using Akka's Camel module to build an endpoint to handle file uploads. The arriving request headers when uploading a file using an html form (withenctype="multipart/form-data") is: CamelHttpUrl -> http://localhost:8080/add, Keep-Alive -> 300, Connection -> keep-alive, Content-Lengt