S
steve
I have an array of bytes that I need to save out as an image. I have
tried this
where byte[] type10image is the array of bytes representing the image
Image t10 = null;
t10 = Toolkit.getDefaultToolkit().createImage(type10image);
File output = new File("saved.jpeg");
ImageIO.write(t10, "jpeg", output);
and on the last line on the .write I am getting
cannot find symbol
symbol: method write(java.awt.Image, java.lang.String, java.io.File)
location: class.javax.imageio.ImageIO
and yes I have
import javax.imageio.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
Help? Not sure what is going on.
Thanks
tried this
where byte[] type10image is the array of bytes representing the image
Image t10 = null;
t10 = Toolkit.getDefaultToolkit().createImage(type10image);
File output = new File("saved.jpeg");
ImageIO.write(t10, "jpeg", output);
and on the last line on the .write I am getting
cannot find symbol
symbol: method write(java.awt.Image, java.lang.String, java.io.File)
location: class.javax.imageio.ImageIO
and yes I have
import javax.imageio.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
Help? Not sure what is going on.
Thanks