Thanks!

I need to use the multipart as my server implementation understand only
multipart requests.

Could you please elaborate on how you fixed this issue. I'm not using the
consumer class in my code for uploading files.

Would it be possible to send over a snippet of code


Regards,
Ashish



On Fri, Jul 18, 2014 at 11:07 PM, jax <jaxles...@gmail.com> wrote:

> Hi Ahsish,
> We had a similar problem.
> I had implemented BasicAsyncRequestConsumer in my handler in the
> processRequest().
> It has a limit - look at the onEntityEnclosed() method.
>
> So you need to extend AbstractAsyncRequestConsumer and create your own
> consumer.
>
> Also I had to implement an input buffer class, similar to SimpleInputBuffer
> (used in BasicAsyncRequestConsumer.onRequestReceived()) where I passed in
> an
> outputstream to write the file to.
>
>
> And I used the following on the client, not a MultipartEntity.
>
> FileEntity fileEntity = new
> FileEntity(fileToUpload,ContentType.APPLICATION_OCTET_STREAM);
>
> HTH.
>
> Jax.
>
>
>
> --
> View this message in context:
> http://httpcomponents.10934.n7.nabble.com/Uploading-file-2GB-tp23880p23882.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
>

Reply via email to