Get Image Width and Height values
Posted on 2008-06-10
I am just learning JSP, and I have been trying to get this working all day to no avail. What I am trying to do is, using an image's path on my physical drive like "C:\myfolder\myimage.jpg", display on a webpage the width and height of the image. I did not need to manipulate the image, so I thought this might be easy. If anyone has some working code in JSP to solve this that would be amazing. I am not picky right now if it is using a scriptlet, tags, or however it can be done Thanks!