I do this by converting to a BufferedImage

byte[] image = myImage.getFileData();
ByteArrayInputStream stream = new ByteArrayInputStream(image);
BufferedImage img = ImageIO.read(stream);

BufferedImage has height and width properties.

Cheers Mark

On 24 Jan 2004, at 19:23, J�rgen Scheffler wrote:

Hi,

I want to check the dimension of an uploaded image. How do ich cast a
FormFile to an image?

thx

J�rgen


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to