原写法:
response.addHeader(
"Content-Disposition",
"attachment;filename="
+ new String(fileStr.substring(fileStr.lastIndexOf(File.separator) + 1)
.getBytes("gb2312"), "ISO8859-1"));
IE浏览器总是提示下载,
最后发现是由于:attachment 的原因,去掉即可正常返回