getResponse().setContentType("application/octet-stream");//设置流传输
getResponse().addHeader("Content-Disposition", "attachment;filename="+"pic.jpg");//设置下载的文件名称
转载于:https://my.oschina.net/ffse54s/blog/1499691
getResponse().setContentType("application/octet-stream");//设置流传输
getResponse().addHeader("Content-Disposition", "attachment;filename="+"pic.jpg");//设置下载的文件名称
转载于:https://my.oschina.net/ffse54s/blog/1499691