question: public static byte [ ] readFileToByteArray ( File file ) throws IOException { InputStream in = null ; try { in = openInputStream ( file ) ; return IOUtils . toByteArray ( in , file . length ( ) ) ; } finally { IOUtils . closeQuietly ( in ) ; } }
target:  Reads the contents of a file into a byte array. The file is always closed.