translation by du gang
public void upLoadImg() throws Exception {
FileInputStream ins = new FileInputStream(upload);// 将上传文件转为输入流
String uri = //文件保存的uri
FileOutputStream out = new FileOutputStream(uri);
byte[] buf = new byte[1024];
for (int readNum; (readNum = ins.read(buf)) != -1;) {
out.write(buf, 0, readNum);
}
out.close();
ins.close();
}
public File getUpload() {
return upload;
}
public void setUpload(File upload) {
this.upload = upload;
}
public String getUploadFileName() {