question: public static boolean writeBinaryFile ( byte [ ] data , File outputFile ) { boolean result = true ; try { BufferedOutputStream output ; output = new BufferedOutputStream ( new FileOutputStream ( outputFile ) ) ; output . write ( data , 0 , data . length ) ; output . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; result = false ; } return result ; }
target:  writes a byte array into a given output file 