Martin,
The problem is most likely caused by the PUT method buffering the request body in 
order to determine its length

You can avoid this problem by 

(1) using chunk-encoding

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/ChunkEncodedPost.java?rev=1.4.2.1&only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup

(2) explicitly specifying the content length

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/UnbufferedPost.java?rev=1.2.2.1&only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup

Oleg

-----Original Message-----
From: martin hilpert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 11:09
To: [EMAIL PROTECTED]
Subject: OutOfMemory if using PUT


Hello,
i using the HttpClient in a Java Applet but
if i transfer a file larger then 32MB i get a OutOfMemory.

does some others has the same bug?

greetz from Germany

Martin

***************************************************************************************************
The information in this email is confidential and may be legally privileged.  Access 
to this email by anyone other than the intended addressee is unauthorized.  If you are 
not the intended recipient of this message, any review, disclosure, copying, 
distribution, retention, or any action taken or omitted to be taken in reliance on it 
is prohibited and may be unlawful.  If you are not the intended recipient, please 
reply to or forward a copy of this message to the sender and delete the message, any 
attachments, and any copies thereof from your system.
***************************************************************************************************

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

Reply via email to