Hello, I'm trying to stream a GET response directly to a PUT method but I get a "java.io.IOException: Stream closed" exception in order to synchronize 2 DAV repositories. I would like to avoid to deal with temporary files.
I found the FileRequestEntity implementation on the httpclient website : http://hc.apache.org/httpclient-3.x/performance.html#Request_Response_entity_streaming You can found my attempt here : http://pastebin.com/f5cef9454 Can somebody point me where I'm wrong? Thanks for help. StackTrace ----------------------------- Exception in thread "main" java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145) at java.io.BufferedInputStream.read(BufferedInputStream.java:308) at java.io.FilterInputStream.read(FilterInputStream.java:90) at fr.ippon.webdav.Test$FileRequestEntity.writeRequest(Test.java:66) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at fr.ippon.webdav.Test.main(Test.java:34) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
