src/main/java/com/whyc/service/ProductSoftwareService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/whyc/service/ProductSoftwareService.java
@@ -65,6 +65,7 @@ // 转码防止乱码 resp.addHeader("Content-Disposition", "attachment;filename=" + softwareName); resp.setCharacterEncoding("UTF-8"); OutputStream out = resp.getOutputStream(); FileInputStream in = new FileInputStream(fileDirName+File.separator+software.getSoftwareUrl()); int len=0;