Article View: borland.public.jbuilder.java.language
Article #14502Re: Create an Image in a Servlet
From: Kobus du Toit
Date: Fri, 27 Aug 1999 00:00
Date: Fri, 27 Aug 1999 00:00
24 lines
1527 bytes
1527 bytes
Why don't you send an html string with the image url. Then the browser will go and get the image for you. Kobus "Spectron International, Inc." 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.
Technical Details
Message-ID:
<37C6704A.4CEBC2F3@iname.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: Kobus du Toit <battlezone@iname.com> Subject: Re: Create an Image in a Servlet Date: 1999/08/27 Message-ID: <37C6704A.4CEBC2F3@iname.com> X-Deja-AN: 517752191 Content-Transfer-Encoding: 7bit References: <7peu8f$2kd6@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: battlezone@iname.com Newsgroups: borland.public.jbuilder.java.language