you can save image
private static void save(BufferedImage image, String ext) {
File file = new File(fileName + "." + ext);
BufferedImage image = toBufferedImage(file);
try {
[Link](image, ext, file); // ignore returned boolean
} catch(IOException e) {
[Link]("Write error for " + [Link]() +
": " + [Link]());
}
}
and read image from disk and show into label as
File file = new File("[Link]");
image = [Link](file);
JFrame frame = new JFrame();
JLabel label = new JLabel(new ImageIcon(image));
[Link]().add(label, [Link]);
[Link]();
[Link](true);