Is there another way to write a BufferedImage ?

"Carter, Scott" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <92EFB80E551BD511B39500D0B7B0CDCC07151500@ohms.electric.ci.austin.tx.us>
Has anyone else had a problem writing a gif image from a BufferedImage ?

This works:
ImageIO.write(myBufferedImage, "JPG", new File("/path/to/image.jpg"));

This does not:
ImageIO.write(myBufferedImage, "gif", new File("/path/to/image.gif"));

I know the gif image in the BufferedImage is good as it gives me good values
when I do a getWidth() or getHeight() but will write an empty file when the
above is run.

Hope this was not too far off subject, just a follow up question to the one
posed earlier.

Thanks - Scott

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.