code: protected long writeByteArrayValue(File file, ValueData value) throws IOException
     {
        OutputStream out = new FileOutputStream(file);
        try
        {
           byte[] data = value.getAsByteArray();
           out.write(data);
  
           return data.length;
        }
        finally
        {
           out.close();
        }
     }
docs: Write value array of bytes to a file.
  
  @param file
  File
  @param value
  ValueData
  @return size of wrote content
  @throws IOException
  if error occurs