Hello Eric,
Please try to set the content length similar to:
method.setHeader("Content-Length", ""+input.length);
We encountered a similar problem in our test suite and this setting solved
it.
Best regards,
Juergen
-----Original Message-----
From: Eric Hodges [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 18.20 PM
To: [EMAIL PROTECTED]
Subject: Read timing out when trying to upload a file
I'm trying to use WebdavResource.putMethod() to upload a file from my client
with this code:
WebdavResource webdavResource = getWebDAVResource(httpURL);
byte[] fileContent = getBufferToUpload();
boolean result =
webdavResource.putMethod(path+"/"+filePart.getFileName(), fileContent);
Slide gets to this code inside FileContentStore.createRevisionContent():
while (true) {
int nChar = is.read(buffer);
if (nChar == -1) {
break;
}
when the is.read(buffer) call times out and throws an exception. This
doesn't happen when I use WebFolders to upload a file, so it must be
something in my code. Any ideas?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>