public static void write ( byte [ ] bytes , File file ) throws IOException { BufferedOutputStream outputStream = new BufferedOutputStream ( new FileOutputStream ( file ) ) ; outputStream . write ( bytes ) ; outputStream . close ( ) ; }
wtire bytes into file