title: reading and storing a .bmp file in java
body: <p>I'm am trying to read a .bmp file called <code>circle1.bmp</code>. It is in a package that I have imported into the following file. </p>
  
  <p>So far I have the following code, but when I run the following code I get:</p>
  
  <p>javax.imageio.llOException: Can't read input file!</p>
  
  <pre><code>public void setUp() throws IOException
  {
      BufferedImage image = ImageIO.read(new File("circle1.bmp"));
      byte[][] greenInputData = new byte[30][40];
  
      for (int x = 0; x &lt; inputData.length; x++)
      {
          for (int y = 0; y &lt; inputData[x].length; y++)
          {
              int color = image.getRGB(x, y);
              //alpha[x][y] = (byte)(color&gt;&gt;24);
              //red[x][y] = (byte)(color&gt;&gt;16);
              greenInputData[x][y] = (byte)(color&gt;&gt;8);
              //blue[x][y] = (byte)(color);
          }
      }
      this.inputData = greenInputData;
  
      System.out.println(this.inputData);
  }
  </code></pre>