title: ImageIO inside jar file
body: <p>Okay so I'm trying to make an API for my intro screen to be used across multiple games and I've spent the last 5-6 hours trying to figure out this 1 problem.</p>
  <p>Lets say that I have the API.jar referenced in on of my games and I'm trying to call the method getByteArray() which is supposed to load the frame as a BufferedImage then return the byte[] data. I constantly get input == null when attempting to load the image.</p>
  <pre><code>public byte[] getByteArray() throws IOException {
      // Open Image
      String url = &quot;/com/jumpbuttonstudio/api/resources/intro/Frame (&quot; + current_frame + &quot;).jpg&quot;;
      System.out.println(&quot;Loading: &quot; + url);
      BufferedImage img = ImageIO.read(getClass().getClassLoader().getResourceAsStream(url));
  
      DataBufferByte data = (DataBufferByte) img.getRaster().getDataBuffer();
  
      return (data.getData());
  }
  </code></pre>
  <p>I really need help with this, I can provide more information if required.</p>
  <h1>NOTE</h1>
  <p>The code above is in the API.jar and so are all the images.</p>