Decode64

function

Library: Base64 encoding and decoding (OMENC64 legacy)
Include: omenc64.xin

Declaration
define string function Decode64
                 value      stream Chars-In
   with-sequence value      stream EncodeSeq optional
   status        modifiable switch Status    optional

Argument definitions

Chars-In
Incoming data encoded in Base64.
EncodeSeq
A sequence of up to 64 characters to be used as the decoding sequence. Duplicate characters are allowed but will be ignored. This sequence must be the one used with the Encode64 function that encoded the data.
Status
This optional success switch will be set to false if a problem occurs.


Purpose

You can use this function to convert encoded Base64 data into the original data. You can use this function to convert incoming 64-character-set data into binary data (255-character-set data) when processing incoming email attachments (for example, binary files) or sections.

Other Library Functions