title: Image read in Java
body: <p>I am trying to read a image with the following code, I wasn't able to figure it out why its happening. If there is anything I done wrong in the following code, please tell me.</p>
  
  <pre><code>System.out.println("Image Bytes ::"+imageBytes);
  
  InputStream in = new ByteArrayInputStream(imageBytes);
  BufferedImage img = ImageIO.read(in);
  
  System.out.println("Buff Image :: "+img);
  </code></pre>
  
  <p>and the Output is as follows:</p>
  
  <pre><code>Image Bytes ::[B@4554617c
  Buff Image :: null
  </code></pre>