|
@ -274,6 +274,9 @@ public class QrCodeController extends WeixinBaseController {
|
|
|
String path = request.getSession().getServletContext().getRealPath("/")
|
|
|
+ File.separator + "qrcode" + File.separator + doc.getQrcode();
|
|
|
InputStream inputStream = new FileInputStream(path);
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
response.setContentType("multipart/form-data");
|
|
|
response.setHeader("Content-Disposition", "attachment;fileName=" + doc.getQrcode());
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
byte[] b = new byte[2048];
|
|
|
int length = 0;
|