public static byte[] readFile(String fileUrl) throws FileNotFoundException, IOException{
FileInputStream fInput = new FileInputStream(fileUrl);
FileChannel fileChannel = fInput.getChannel();
MappedByteBuffer mbBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size());
byte[] b = new byte[mbBuffer.capacity()];
mbBuffer.get(b, 0, b.length);
return b;
}