Version 23.3.8698


Version 23.3.8698

Encodes a file or string of data in a specified encoding format.

Required Parameters

You must provide a value for one of the following fields, but not both:

  • data: Data to encode.
  • file: File to encode.

Optional Parameters

  • format: The format to use for encoding. Available values are BASE64, HEX, HMAC, HTML, JIS, MD5, QP, SHA1, URL, UU, and YENC. The default value is BASE64.
  • outfile: The file in which to store the encoded data.
  • outformat: The format to use for encoded data. Available values are RAW, BASE64, and HEX. The default value is RAW.

Output Attributes

  • encodeddata: The encoded data.
  • format: The format used for encoding.
  • outfile: If you specified an input value for outfile, this is the file that contains the encoded data.


The following ArcScript code, when placed in a Script connector, reads data from an input file at [FilePath] and encodes it in the default BASE64 format:

<arc:set attr="encode.File" value="[FilePath]" />
<arc:call op="encEncode" in="encode" out="out">
  <arc:set attr="push.Data" value="[out.encodeddata]" />
  <arc:set attr="push.FileName" value="encoded.data" />
  <arc:push item="push" />