以下是我用于将图像发送到Eclipse中的服务器的代码片段。对于下面显示的两个导入,我无法找到要导入项目的正确jar文件。
import net.gotev.uploadservice.MultipartUploadRequest;
import net.gotev.uploadservice.UploadNotificationConfig;
这两个导入用于促进以下方法
private void uploadImage(String p) {
String path = p;
String name = "college";
try{
String uploadid= UUID.randomUUID().toString();
new MultipartUploadRequest(this,uploadid,UPLOAD_URL)
.addFileToUpload(path,"image")
.addParameter("name",name)
.setNotificationConfig(new UploadNotificationConfig())
.setMaxRetries(2)
.startUpload();
}catch(Exception e){
}
}
}
在互联网上搜索后,我找不到要包含在项目中的确切库。是因为我使用Eclipse ADT而不是Android Studio。?