Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a class that givs me the size of a gif or jpg file

Status
Not open for further replies.

petersJazz

Programmer
Joined
Jan 28, 2002
Messages
222
Location
EU
I wonder if there is a class somewhere that takes a gif or jpg file and returns the size of the image.

A have I website where users can upload pictures and I would like to get the size of the images (now Im asking the users for the size).
 
You can try java.io.File class.It has a length() method that returns the size of the file in bytes as far as I know. Salih Sipahi
Software Engineer.
City of Istanbul Turkey
ssipahi@yonbilgi.com
 
Gif and jpg files are image files. I want to get the width and height of the image.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top