Article View: borland.public.jbuilder.java.language
Article #14413Re: Create an Image in a Servlet
From: Tom.Eugelink
Date: Tue, 07 Sep 1999 00:00
Date: Tue, 07 Sep 1999 00:00
27 lines
1432 bytes
1432 bytes
On Wed, 18 Aug 1999 14:37:16 -0400, "Spectron International, Inc." <spectron@caribe.net> wrote: >Hello: > >I have a servlet called CreatePlot and I want it to return a GIF ot JPEG >graphic so I can use it in something like this: > ><IMG SRC="/servlets/CreatePlot" > > >I have a GifEncoder class that sends an Image to an outputStream, that >should work. The problem is how can I create an Image object from a servlet. >Image is an abstract object so I can't create it directly, I must create it >through Applet, Frame, or another AWT object. Is there a MemoryImage class >that can create a Image object without any AWT objects? I know about >MemoryImageProducer but it requires me to create an AWT object and I can't >create one from a Servlet in Linux because it wants to connect to XWindows. > >Fawzib Rojas >Spectron International, Inc. > > Maybe you should take a look at the class "ImageIcon", that is what we are using for storing images in databases. Tom
Technical Details
Message-ID:
<37d4c71d.5285910@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7peu8f$2kd6@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ea682dbe7aad36f9 X-Google-Attributes: gidf74b3,public From: Tom.Eugelink@OVSoftware.com Subject: Re: Create an Image in a Servlet Date: 1999/09/07 Message-ID: <37d4c71d.5285910@forums.inprise.com> X-Deja-AN: 522008385 References: <7peu8f$2kd6@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language