In order to get image's height we can use ImageIO.read(new URL("…")).getHeight().
My questions:
- Do I understand correctly that this method downloads the image to the local computer prior size calculation?
- If yes, to where exactly the image is downloaded — to some JVM's cache on HDD or directly to the RAM?
- Is there any way to take image's height without transfer or download? But with some kind of request to server?