This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Can I embed a hyperlink in a GIF file?
Can I embed a hyperlink in a GIF file?
Read file from package
Write image to a file
Jpeg images not proper in MAC