tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Taprogge <Philipp.Tapro...@gmx.net>
Subject Re: Image download?
Date Tue, 10 Feb 2004 03:24:15 GMT
Hi!

I don't know if this will help you, but I use the ImageIO classes for 
exactly the same purpose. Works great for me. I first create a 
BufferedImage and then write it to the response.
The code looks something like this:

BufferedImage bi; //make your BufferedImage from whatever
response.setContentType("image/gif"); //or whatever
ImageIO.write(bi, "gif", response.getOutputStream());
response.getOutputStream().flush();

HTH

		Phil



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


Mime
View raw message