Article View: borland.public.jbuilder.java.language
Article #14613Re: Create an Image in a Servlet
From: Tor Iver Wilhelmsen
Date: Thu, 19 Aug 1999 00:00
Date: Thu, 19 Aug 1999 00:00
14 lines
1064 bytes
1064 bytes
"Spectron International, Inc." <spectron@caribe.net> writes: > 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. Java 1.2 introduced a non-AWT-needing image object called a java.awt.image.BufferedImage: Despite its package tree, it's non-"peered". Create such an image, paint onto it, then pass it to an encoder in order to send a properly understandable image file to the browser. Such encoders can be found arund the web; you want one that can write to a stream.
Technical Details
Message-ID:
<ud7wk9tdl.fsf@sds.no>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: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: Create an Image in a Servlet Date: 1999/08/19 Message-ID: <ud7wk9tdl.fsf@sds.no> X-Deja-AN: 514577324 Sender: towi@SDSA1761 References: <7peu8f$2kd6@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language