code: public static final void fileDump(String fileName, byte[] data)
     {
        try
        {
           FileOutputStream os = new FileOutputStream(fileName);
           os.write(data);
           os.close();
        }
  
        catch (IOException ex)
        {
           ex.printStackTrace();
        }
     }
docs: Writes a large byte array to a file.
  
  @param fileName output file name
  @param data target data