mirror of https://gitee.com/stylefeng/roses
【7.2.3】增加图片文件的渲染头
parent
ca0a8663c0
commit
3c6ed94d05
|
@ -95,4 +95,14 @@ public class ResponseRenderUtil {
|
|||
response.setContentType("application/octet-stream; charset=utf-8");
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置图片的渲染文件头
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2021/7/1 15:01
|
||||
*/
|
||||
public static void setRenderImageHeader(HttpServletResponse response) {
|
||||
response.setContentType("image/png");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue