You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Randy Layman <ra...@aswethink.com> on 2000/10/02 13:51:00 UTC

RE: Reading a gif file!

If you just need to get the contents of an existing GIF file, then you
could:

1.  Use a forward to the file
2.  Set the content-type to image/gif (check that's the right content type)
and then write the bytes of the file out (use the response.getOutputStream
to write the raw bytes).

I haven't ever created a GIF image on the fly, but have created JPEGs using
the java.awt.Image class and the com.sun.image.codec.jpeg package.  

	Randy


-----Original Message-----
From: Heydari, Parviz [mailto:heydari.parviz@dnb.no]
Sent: Monday, October 02, 2000 8:12 AM
To: 'general@jakarta.apache.org'
Subject: Reading a gif file!


Hi,

I'm trying to get a gif file to the internett browser using JSP! Any idea in
this case can be great and helpfull.

Best regards
	Parviz

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org