Browse Source

图片转换成base64码进行显示

tags/v1.1.0
qiujinyang 2 years ago
parent
commit
ab6dc5040b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java View File

@@ -511,7 +511,7 @@ public class ReportServiceImpl extends BaseServiceImpl<ReportMapper, Report> imp
//response.setCharacterEncoding("utf-8");
//定义下载的类型
//response.setContentType("application/msword;charset=GBK");
response.setContentType("application/octet-stream");
response.setContentType("application/msword");
OutputStream out;
File files = new File(filePath,"");


Loading…
Cancel
Save