Hello everyone,
I'm very new for
Java I/0.
I want to convert Image object to byte array (byte[])
This is my code for creating Image.
Image myImage =null;
try {
myImage = Image.createImage("/myImage.png");
} catch (IOException ex) {
ex.printStackTrace();
}
How can I convert "myImage" to byte[] with Java I/0
Please could you give me a good suggestion and code snippet.
Thanks a lot.