Look at the Java2D api.
http://java.sun.com/products/java-media/2D/index.html
You can create a custom action handler for struts that uses the Java2d api
to check the image as well as apply transformation to it.
I know this is a little vague but it's always more rewarding when wee
discover things for ourselves. If you have trouble, just email me and I'll
be happy to discuss in more detail.
-----Original Message-----
From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 6:56 AM
To: struts-user
Subject: Image uploads
Hi there,
I know the question is a little offtopic, but maybe somebody can provide a
quick
answer anyway.
I want to upload an image file with struts (this works well already). But
before
storing the image in the database I want to check the width and height and
the
type of the image (e. g. gif or jpg). Does anybody have an idea how I can
easily
do this in Java?
Thanks,
--- Matthias