This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Find Image size in jsp or servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Find Image size in jsp or servlet" Watch "Find Image size in jsp or servlet" New topic
Author

Find Image size in jsp or servlet

Nilesh Patel
Ranch Hand

Joined: Feb 02, 2006
Posts: 91
i have one image like nilesh.jpg

How can i find height and width of image (jpg,gif...) ???

In Jsp or servlet


Nilesh Patel
SCJP 1.5 - 87%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41573
    
  54
The ImageInfo class is very helpful for this.


Ping & DNS - my free Android networking tools app
Nilesh Patel
Ranch Hand

Joined: Feb 02, 2006
Posts: 91
Thanks ..

its working fine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Find Image size in jsp or servlet