修改返回前端图片格式
This commit is contained in:
@@ -56,7 +56,7 @@ public class ImageToStreamController extends BaseController {
|
||||
|
||||
response.setContentType("application/octet-stream");
|
||||
response.setHeader("content-type", "image/png");
|
||||
response.setHeader("Content-Disposition", "attachment;fileName=download" +System.currentTimeMillis() + "");// 设置文件名
|
||||
response.setHeader("Content-Disposition", "inline;fileName=download" +System.currentTimeMillis() + "");// 设置文件名
|
||||
//返回流处理
|
||||
bis = new BufferedInputStream(fileStream);
|
||||
OutputStream os = response.getOutputStream();
|
||||
|
||||
Reference in New Issue
Block a user