🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14606

Create an Image in a Servlet

#14606
From: Spectron International, Inc.
Date: Wed, 18 Aug 1999 00:00
17 lines
1260 bytes
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: <7peu8f$2kd6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ea682dbe7aad36f9,start
X-Google-Attributes: gidf74b3,public
From: "Spectron International, Inc." <spectron@caribe.net>
Subject: Create an Image in a Servlet
Date: 1999/08/18
Message-ID: <7peu8f$2kd6@forums.borland.com>
X-Deja-AN: 514314522
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language