-
Image File Read프로그래밍/Java 2020. 6. 9. 15:40
1. Read from local file
File sourceimage = new File("c:\\myimage.jpg"); Image image = ImageIO.read(sourceimage);
2. Read from URL
URL url = new URL("http://www.naver.com/image/myimage.jpg"); Image image = ImageIO.read(url);
출처 : https://mkyong.com/java/how-to-read-an-image-from-file-or-url/