File Encoding and Decoding
CLASS aprEncode
Description
The file encoding Class provides Methods for encoding and decoding binary files, typically attachments to e-mail messages. The process of encoding converts the contents of a binary file to printable 7-bit ASCII text. Decoding reverses the process, converting a previously encoded text file back into a binary file.
There are two primary types of encoding used, uucode and base64. The uucode format (so called because the programs to perform the conversion were called uuencode and uudecode) is commonly used on UNIX systems and is still widely used when attaching binary files to USENET newsgroup posts. The base64 algorithm is most commonly used with e-mail attachments, and is often referred to as MIME encoding since this is the encoding method specified in the MIME standards document.
|
Variables | ||
|
|
Holds a description for the Last error code | |
|
|
Enable/Disable extended Debug notifications. | |
|
|
Enable/Disable Callstack List to be included in Error Messages (:Debug) | |
|
|
Holds the last error code | |
|
| ||
|
Methods | ||
|
|
Creates a new Instance of the aprEncode Class | |
|
|
Releases the system resources assigned by the :New() Method. | |
|
| ||
|
|
Compress the contents of the specified file | |
|
|
Decode a base64 encoded string, storing the result in a byte array | |
|
|
Decode the contents of a file using the specified decoding method | |
|
|
Encode a byte array using the base64 encoding method | |
|
|
Encode the contents of a file using the specified encoding method | |
|
|
Expand the contents of a previously compressed file | |