I didn't know whether you code on kjava paltform
this is some java code :
==========================
Image image = createImage("your file name");
int width = image.getWidth();
int height = image.getHeight();
int []pixels32 = new int[width * bitmap];
image.getRGB(pixels32, 0, width, 0, 0, width, height);
=============================
BTW:if you still can't get a byte array from image, you may try to png User Information |