用Java代码获取体验版二维码,生成的jpeg文件打不开?
[图片] 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);
图片生成了但是没法打开