I have a servlet that permits the upload of image files (gif, jpg). The code I have can restrict the size of the file being uploaded, but I don't know of a way to test the actual dimensions of the file (width and height). I would like to have that capability. Does anyone know how to measure the dimensions of an image programmatically once you have the image file?