Base64 encoding and decoding (OMENC64 legacy)

The base64 encoding and decoding library consists of functions that let you do base64 encoding and decoding.

Base64 encoding and decoding is frequently used when sending binary data by email. Since not all email systems transmit binary data correctly, you can encode your data in base64, send the data as regular email or as an attachment, and then have the recipient decode the data from base64.

The library consists of the following functions:

  • Encode64 -- used to encode data into base64
  • Decode64 -- used to decode base64 data into the original data

To use the base64 encoding functions in your OmniMark program, you must add the following statement to your program:

      include "omenc64.xin"

Functions