url = /applet/getQrCode?authorizer_appid=xxx&path=page%2Findex%3Faction%3D1;
String result = HttpUtil.get(url);
byte[] bytes = result.getBytes(StandardCharsets.UTF_8);
response.setHeader("Content-Type","image/jpeg");
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("QRCode.jpeg", StandardCharsets.UTF_8));
response.getOutputStream().write(bytes);
图片生成了但是没法打开
小程序二维码没问题
您好,可以把这块代码发给我学习一下吗,915878367@qq.com,谢谢
生成的图片用文本程序打开看看