//------5.通过输出流将文件回写到浏览器完成下载----------------------
OutputStream os = resp.getOutputStream();
int len = 0;
byte[] b = new byte[1024];
while((len = is.read(b))!= -1){
os.write(b, 0, len);
}
is.close();
//------------------------------------------------------------------
}
//------5.通过输出流将文件回写到浏览器完成下载----------------------
OutputStream os = resp.getOutputStream();
int len = 0;
byte[] b = new byte[1024];
while((len = is.read(b))!= -1){
os.write(b, 0, len);
}
is.close();
//------------------------------------------------------------------
}