sevelet在后台生成了微信支付的二维码图片,怎么传给前台,我是一个新手,老师留的大作业,就差微信支付没做了,这是后台生成的二维码,怎么在前台调用,这是后台生成二维码的代码 try {
int width = 200;
int height = 200;
System.out.println("123");
String format = "png";
Hashtable hints = new Hashtable();
hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
BitMatrix bitMatrix = new MultiFormatWriter().encode(code_url, BarcodeFormat.QR_CODE, width, height, hints);
OutputStream out = null;
out = response.getOutputStream();
MatrixToImageWriter.writeToStream(bitMatrix, format, out);
out.flush();
out.close();
后台生成的二维码图片怎么传给前台?java
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-