title: Problem using ImageIO.read
body: <p>Ok I have an Image that I'm trying to read. Problem is that the Image.read(file) returns NULL.</p>
  
  <pre><code>File file = new File("C:\\images\\image1.jpg");
  if(file.exists()){
      System.out.println("Image file exists.");
      BufferedImage originalImage = ImageIO.read(file);
  
  }
  </code></pre>
  
  <p>So image exists but ImageIO.read(file) returns NULL.  No thrown errors nothing!!!  Whats going on?</p>
  
  <p>This is what I have tried so far:</p>
  
  <ol>
  <li>Ok my environment is Windows 7.  I
  tested with one of those images that
  comes with Windows and its able to
  read the image.</li>
  <li>The image1.jpg was created by
  another system. Now sure what method
  they are using.</li>
  <li>I tried converting the image into
  RGB as suggested here <a href="https://stackoverflow.com/questions/2408613/problem-reading-jpeg-image-using-imageio-readfile-file">link text</a>
  but it fails with "Not a JPEG file: starts with 0x4d 0x4d".</li>
  <li>The image extension is .jpg, but
  windows says its a JPEG type? This
  is confusing.</li>
  </ol>
  
  <p>Can someone help with this? I'm new to this, not sure how to fix this.</p>
  
  <p>Ok I just figured out that ImageIO.getImageReaders(stream) returns an empty Iterator. This means that it couldn't find a suitable reader? How am I supposed to read this image?</p>