public static byte[] loadBinaryFileAsBytes(final String file) throws IOException {
  final FileInputStream inputStream=new FileInputStream(file);
  final byte[] data=new byte[inputStream.available()];
  inputStream.read(data);
  inputStream.close();
  return data;
}

public static byte [ ] loadBinaryFileAsBytes ( final String file ) throws IOException { final FileInputStream inputStream = new FileInputStream ( file ) ; final byte [ ] data = new byte [ inputStream . available ( ) ] ; inputStream . read ( data ) ; inputStream . close ( ) ; return data ; }
loads a key file from the specified location .
