huwhois 5 ans auparavant
Parent
commit
a547050cab

+ 6 - 2
src/main/java/io/renren/modules/app/controller/QRCodeTest.java

@ -43,8 +43,12 @@ public class QRCodeTest {
43 43
44 44
		ServletOutputStream out = response.getOutputStream();
45 45
		// ImageIO.write(image, "jpg", out);
46
		qRCodeUtils.encode(text, out);
47
		IOUtils.closeQuietly(out);
46
		try{
47
			qRCodeUtils.encode(text, out);
48
			IOUtils.closeQuietly(out);
49
		}catch(Exception e){
50
			e.printStackTrace();
51
		}
48 52
    }
49 53
50 54
}