Link to home
Start Free TrialLog in
Avatar of dogma
dogma

asked on

Validating an Image file

In a servlet, one of the inputs is a filename. I need to write some code to ensure that the file is a valid GIF or JPG file.

I was hoping that the java.awt.* stuff would throw exceptions, but it doesn't seem to.

How would I go about doing this?
ASKER CERTIFIED SOLUTION
Avatar of tgoetze
tgoetze

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial