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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to