wood burning stoves
The moose likes Java in General and the fly likes pls help ....writing image to file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "pls help ....writing image to file" Watch "pls help ....writing image to file" New topic

pls help ....writing image to file

zniter goh

Joined: Sep 23, 2001
Posts: 29
if i have a image in a BufferedImage how do i save in a file like jpeg,gif....thx
Thomas Smets
Ranch Hand

Joined: Dec 11, 2001
Posts: 111
Give a look at the Servlets / JSP API's.
especially the com.sun.image.codec.jpeg.JPEGImageEncoder ...
this example shuld be almost compilable !

Other inspire your self from javaworld

Thomas Smets
Just another developper
I agree. Here's the link: http://aspose.com/file-tools
subject: pls help ....writing image to file
It's not a secret anymore!