I'm using Slide Client API to upload/download files to Apache Slide repository. public void downloadDocument(WebdavResource resource, File localFile) throws Exception { if(!resource.isCollection()) { resource.getMethod(localFile); } } public void uploadDocument(WebdavResource resource, File localFile) throws Exception { if(resource.isCollection()) { resource.putMethod(resource.getPath()+"/"+localFile.getName(), localFile); } } The strange thing is that files that are larger that 65535 bytes stop downloading by 65535 bytes having been read from the stream. Then goes a rather long pause after which the result -1 is returned. Can you please help me?