title: Reading TIFF image from file using BufferedImage and JAI
body: <p>I'm trying to read a TIFF image from file using BufferedImage. The following is my code:</p>
  
  <pre><code>String filename = "/image/parrot.tiff";
  File f = new File (filename);
  try{
          BufferedImage img = ImageIO.read(f);
  }catch (Exception e){
          System.out.println("Something went wrong!");
  }
  </code></pre>
  
  <p>But it isn't working. I have a method called testInput just to test if the file was read properly:</p>
  
  <pre><code>public void testInput(){
      System.out.println(f.exists());
      System.out.println(f.canRead());
      System.out.println(f.canWrite());
  }*/
  </code></pre>
  
  <p>The three of them would always return "false" and the above code always returns "Something went wrong!". I already added JAI ImageIO for the plug-in to read TIFF image. Any idea what seems to be the problem?</p>