title: java.lang.IllegalArgumentException: image == null
body: <p>we are getting the exception while reading the image,but i have an image in location path.Please suggest us?</p>
  
  <pre><code>byte photoContentByte[] = null;
  BufferedImage originalImage = ImageIO.read(new File("D:/xyz/Repository/1234567890.tif"));
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  ImageIO.write(originalImage, "jpeg", baos);
  baos.flush();
  photoContentByte = baos.toByteArray();
  baos.close();
  </code></pre>