public static byte [ ] loadBytesFromFile ( File file ) { byte [ ] bytes = null ; try { bytes = Files . readAllBytes ( Paths . get ( file . getAbsolutePath ( ) ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return bytes ; }
load from file