2020-06-28 16:06
@JFinal 解决了,我把QrCodeRender的render方法直接拷贝了出来,在controller里面进行保存,保存后然后在根据renderFile进行下载
2020-06-28 15:03
@JFinal QRCodeWriter writer = new QRCodeWriter();
BitMatrix bitMatrix = writer.encode(this.content, BarcodeFormat.QR_CODE, this.width, this.height, hints);
MatrixToImageWriter.writeToStream(bitMatrix, "png", this.response.getOutputStream());
FileOutputStream fos = new FileOutputStream("D:/download/444.png");
fos.write();
fos.close();
怎么把OutputStream 定位到 FileOutputStream