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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -