public static void writeByteArrayToFile(File file,byte[] data) throws IOException {
  OutputStream out=null;
  try {
    out=openOutputStream(file);
    out.write(data);
  }
  finally {
    ParseIOUtils.closeQuietly(out);
  }
}

public static void writeByteArrayToFile ( File file , byte [ ] data ) throws IOException { OutputStream out = null ; try { out = openOutputStream ( file ) ; out . write ( data ) ; } finally { ParseIOUtils . closeQuietly ( out ) ; } }
writes a byte array to a file creating the file if it does not exist . < p > note : as from v1 . 3 , the parent directories of the file will be created if they do not exist .
