public static byte[] loadImageFile(File imageLoc) throws IOException {
  FileInputStream fis=new FileInputStream(imageLoc);
  byte[] read=new byte[fis.available()];
  fis.read(read);
  fis.close();
  return read;
}

public static byte [ ] loadImageFile ( File imageLoc ) throws IOException { FileInputStream fis = new FileInputStream ( imageLoc ) ; byte [ ] read = new byte [ fis . available ( ) ] ; fis . read ( read ) ; fis . close ( ) ; return read ; }
loads a file using the standard java io classes
