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