>From ContentServlet.java
String formatName = "";
| if ("image/png".equals(contentType))
| formatName = "png";
| else if ("image/jpeg".equals(contentType))
| formatName = "jpeg";
|
| ImageIO.write(bImg, formatName, response.getOutputStream());
You'd have to update this to allow for "gif" format types, but that assumes
that ImageIO supports writing GIFS. Based on
"http://www.gif4j.com/java-gif4j-pro-gif-image-encode-save.htm" you'll need an
extra library.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054528#4054528
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054528
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user