Browse Source

优化图片工具类读取文件

Ricky 3 years ago
parent
commit
3e3882a2af

+ 1 - 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java

@@ -94,6 +94,7 @@ public class ImageUtils
         }
         finally
         {
+            IOUtils.closeQuietly(in);
             IOUtils.closeQuietly(baos);
         }
     }