S
Slava
I need to open a gif file from JSP, and convert it(type Image) to BufferedImage.
any thoughts and examples whould be appreciated!
Thanks!
any thoughts and examples whould be appreciated!
Thanks!
I need to open a gif file from JSP, and convert it(type Image) to BufferedImage.
Marco said:Slava:
Create a new BufferedImage object of the same resolution as the Image
object and draw the Image object into the new BufferedImage using the
BufferedImage's Graphics context
(BufferedImage.getGraphics().drawImage).
Andrew said:Marco said:Slava:
Create a new BufferedImage object of the same resolution as the
Image object and draw the Image object into the new BufferedImage
using the BufferedImage's Graphics context
(BufferedImage.getGraphics().drawImage).
For some reason I have the vague
recollection that 'image stuff' should
not be done in a jsp, but a Servlet.
[ Something to do with conent-type? ]
Can any of the people who actually
know J2EE (I am a relative noob to it)
confirm/correct/clarify?
For some reason I have the vague
recollection that 'image stuff' should
not be done in a jsp, but a Servlet.
Marco said:Andrew Thompson:
Ah, I didn't pay attention to the JSP part. I have no idea how that
influences the imaging part.
Marco said:Andrew Thompson:
Ah, I didn't pay attention to the JSP part. I have no idea how that
influences the imaging part.
Regards,
Marco
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.