wood burning stoves 2.0*
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
Author

pls help ....writing image to file

zniter goh
Greenhorn

Joined: Sep 23, 2001
Posts: 29
hi...
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
Rgds,
Thomas,


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