encDecode
Version 22.0.8473
encDecode
Version 22.0.8473
Decodes an encoded file or string of data.
Required Parameters
You must provide a value for one of the following fields, but not both:
- data: Data to decode.
- file: File to decode.
Optional Parameters
- format: The format to use for decoding. Available values are BASE64, HEX, HTML, JIS, QP, URL, UU, and YENC. The default value is BASE64.
- outfile: The file in which to store the decoded data. This is not supported for UU decoding, which uses the filename stored in the encoded file.
- outformat: The format to use for decoded data. Available values are RAW, BASE64, and HEX. The default value is RAW.
Output Attributes
- decodeddata: The decoded data.
- format: The format used for decoding.
- outfile: If you specified an input value for outfile, this is the file that contains the decoded data.
Example
The following ArcScript code, when placed in a Script connector, reads BASE64-encoded data from an input file at [FilePath] and decodes it:
<arc:set attr="decode.File" value="[FilePath]" />
<arc:call op="encDecode" in="decode" out="out">
<arc:set attr="push.Data" value="[out.decodeddata]" />
<arc:set attr="push.FileName" value="decoded.data" />
<arc:push item="push" />
</arc:call>