java.awt.image.BufferedImage image = javax.imageio.ImageIO.read(new BufferedInputStream(multipartFile.getInputStream()));
System.out.println("Image height: " + image.getHeight());
System.out.println("Image width: " + image.getWidth());
System.out.println("Image height: " + image.getHeight());
System.out.println("Image width: " + image.getWidth());
No comments:
Post a Comment