I'm guessing this is happening because the PUT's content length is not being set. The request content length must be set to EntityEnclosingMethod.CONTENT_LENGTH_CHUNKED or to the actual size of the content to avoid buffering. If the content length is not specified the content is buffered to memory in order to determing the length.

Mike

[EMAIL PROTECTED] wrote:
Hi,

I use PutMethod to upload files. Everything goes ok until
I try to send a big file (~ 150 Mo): I get an OutOfMemoryError.

I use a BufferedInputStream for my RequestBody.

Has anyone already had this kind of error ?

Thanks,

Cedric.


Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to