hi!

I want to make make some server side image manipulations on GIF/Jpeg files.
It is: I do have a database with these images (their names), but first I need
a preview for the pictures, and I need to modify the images with some
text on them, alpha an image on an other, all in serverside.

The problem is that I could not _load_ the image as I expected. I need
some pixel - data (for re- encoding and for image manipulations too),
and it would be useful if I would be able to handle it as a normal
image, get it`s Graphics object without server- side messages like "only
valid for images created with createImage(w, h)"

I heve used the "Component.getToolkit().createImage(fileName)" and it
returned an Image, but the image could not give me the Grapics object,
the servlet exited with the above mentioned error message.

May it be, that I have no X server, and nothing to run windowmanagers
on, and because of it I will neber be able to use some parts of AWT,
like this? What can I do to manage if so?

Thx a lot.

Ivo Rajmon.


Tuesday, June 20, 2000, 10:01:58 PM, I wrote:

my previous letter:
IR> Hi!
IR>  I have the next problem: (I`ll show the source because my English is
IR>  terrible. =[ )
IR>      Canvas srcImgBaseComp= new Canvas();
IR>      Image srcImg=srcImgBaseComp.getToolkit().createImage(fileName);
IR>      // The problem is:
IR>      Graphics srcGr= srcImg.getGraphics();
IR>      /* ... it says that "only valid for images created with
IR>         createImage(w, h)"
IR>         And really... then it works... But how can I load then a
IR>         picture from stream or something into _this_ Image?
IR>         I do not have on my host any windowmanagers, so is it the problem?
IR>         I`ve tried the pixelgrabber, to "steal" the image data, but that
IR>         one didn`t work too...
IR>         Have You any idea? :)
IR>      */
IR> So, it was my question...
IR> Thanks a lot:
IR>  Ivo Rajmon
IR>  mailto:[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to