Browse Source

// test img

release_toaliyun_real
xhxu 3 years ago
parent
commit
9887237a75
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mallinkBApi/src/main/java/com/iformall/utils/ImgYwsqhUtil.java

+ 2
- 2
mallinkBApi/src/main/java/com/iformall/utils/ImgYwsqhUtil.java View File

@@ -42,7 +42,7 @@ public class ImgYwsqhUtil {
InputStream backImgUrl = resource.getInputStream();

BufferedImage backImg = ImageIO.read(backImgUrl);
backImgUrl.close();
// backImgUrl.close();
Graphics g = backImg.getGraphics();

Font fTxtBottom = new Font("微软雅黑", Font.PLAIN, 70);
@@ -111,7 +111,7 @@ public class ImgYwsqhUtil {
ByteArrayOutputStream out = new ByteArrayOutputStream();
ImageIO.write(backImg, "png", out);
byte[] bytes = out.toByteArray();
out.close();
// out.close();
return bytes;
} catch (Exception e) {
e.printStackTrace();


Loading…
Cancel
Save