2020-06-28 16:06

@JFinal 解决了,我把QrCodeRender的render方法直接拷贝了出来,在controller里面进行保存,保存后然后在根据renderFile进行下载

2020-06-28 15:48

@JFinal 请问下有没有办法直接让用户下载这个二维码啊。就是用renderFile

2020-06-28 15:10

@JFinal 太感谢了!!!!!!!!! 谢谢波总

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

2020-06-28 15:01

@JFinal 请问怎么将 OutputStream 定位到 FileOutputStream