This commit is contained in:
Duy Tran Khanh committed 2021-01-17 17:36:08 +07:00
1 parent 425f6eddbe
commit af505203dd
1 file changed
+3 -2
@@ -19,8 +19,9 @@ public class ImageIO {
}
public static BufferedImage read(URL input) throws IOException {
BufferedImage img = read(input.openStream());
input.close();
InputStream is = input.openStream();
BufferedImage img = read(is);
is.close();
return img;
}