Upload big file with Jackrabbit WebDAV Library on Android -
my upload function below:
public void webdavputfile() { try { putmethod upload = new putmethod("http://url/filename"); file f = new file("path"); if(f.exists()) { requestentity requestentity = new inputstreamrequestentity(new fileinputstream(f)); upload.setrequestentity(requestentity); client.executemethod(upload); } } catch(exception e) { e.printstacktrace(); } }
it can upload small file success.
if file size large 16mb, occurs outofmemory issue.
how can upload big file?
i found answer here.
use filerequestentity
instead of inputstreamrequestentity
.
works big file upload.
Comments
Post a Comment