Hi I am having the same problem as ammu2288 except mine is a little different i have turned an image into a byte array. however i am trying to sho the image onto a jframe and when the image comes up it justs shows me the default colorof my jframe any help would be appreciated.
Thank You
here is my code:
BufferedImage bImageFromConvert = null;
try
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(screenImage, formatName, baos);
byte[] bytesOut = baos.toByteArray();
ByteArrayInputStream in = new ByteArrayInputStream(bytesOut);
bImageFromConvert = ImageIO.read(in);
}
catch(IllegalArgumentException e)
{
}
catch(IOException e)
{
}
g.drawImage(bImageFromConvert, 0, 0, this);