aspose file tools
The moose likes Java in General and the fly likes writing ImageIcon object ro file system Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "writing ImageIcon object ro file system" Watch "writing ImageIcon object ro file system" New topic
Author

writing ImageIcon object ro file system

Rupali Sarolkar
Greenhorn

Joined: Nov 20, 2007
Posts: 13
I want to save the picture I am getting in ImageIcon object to the file system.How can I do that?

Please Help !!!

Thanks in advance...


Roops
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Use ImageIO to read and write images from files.

Now the problem is, ImageIcon's getImage() method returns an Image and not an RenderedImage, so you have to make sure you'll get a RenderedImage:


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Rupali Sarolkar
Greenhorn

Joined: Nov 20, 2007
Posts: 13
Thanks a lot Friend !!!

I can't express how happy I am !!!

Thanks once again !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: writing ImageIcon object ro file system
 
Similar Threads
Creating a JAR file: File finding problem
A question regarding saving jpgs into text files.
setBrightness
JOptionPane question
Graphics in jtable cell