(Resend)

Hi,

This patch fixed problems in
putMethod(String path, File file)
and
putMethod(String path, InputStream is)
when PUT very large size contents.

The old version tries to load the whole content into memory so as to purely get
the content length. That usually causes "Out Of Memory" problem if the content
is very large.

Best regards,

Albert

-----------------------------
Albert Yu
( Yu Yizhuan )
Software Engineer

email:  [EMAIL PROTECTED]
phone:  +353 21 4910500
direct:  +353 21 4910503
fax: +353 21 4320589
Index: ./src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java,v
retrieving revision 1.60
diff -r1.60 WebdavResource.java
2388a2389
>         method.setRequestContentLength(method.CONTENT_LENGTH_CHUNKED);
2474a2476
>         method.setRequestContentLength((int)file.length());

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

Reply via email to