Hi,
I am using this statement in
jsp page to get image and it's width and height -
Image im = Toolkit.getDefaultToolkit().getImage("E:/photos/thumb/first.jpg");
width = im.getWidth(null);
height = im.getHeight(null);
here problem is that , first time it returns -1 to width and height and after refershing page it returns actual width and height of image.
I think this problem is related to awt and image classes so i posted to it in awt section rather than jsp section.
just tell me how can i get actual width and height in first time.