public static byte [ ] read ( File file ) throws IOException { FileInputStream is = new FileInputStream ( file ) ; try { return bytes ( is ) ; } finally { closeQuietly ( is ) ; } }
Reads file into a byte array .