title: How to resolve Image not found java.io.FileNotFoundException?
body: <p>I'm giving input image to File for some purpose I stored Image and source file in same package but why I'm getting this error please help me ...
  my package is <code>xyz</code> and source file name <code>image.java</code> and image is stored in <code>xyz/original.png</code>(i.e. Image path), below is code snip of image.java...</p>
  
  <pre><code>File file = new File("original.png");
  try {
      FileInputStream imageInFile = new FileInputStream(file);
      byte imageData[] = new byte[(int)file.length()];
      imageInFile.read(imageData);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/WTJzw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WTJzw.png" alt="My directory structure"></a></p>