Base64 unit
Unit implementing base64 encoding.
base64 implements base64 encoding (as used for instance in MIME
encoding) based on streams.
It implements 2 streams which encode or decode anything written or read from
it. The source or the destination of the encoded data is another stream.
2 classes are implemented for this:
TBase64EncodingStream for
encoding, and
TBase64DecodingStream for decoding.
The streams are designed as plug-in streams, which can be placed between other streams, to provide base64 encoding and decoding on-the-fly...
Classes and records
EBase64DecodingException | class | Exception raised on errors. |
TBase64DecodingStream | class | Base64 Decoding stream. |
TBase64EncodingStream | class | Base64 encoding stream. |
TBase64URLDecodingStream | class | |
TBase64URLEncodingStream | class |
Procedures and functions
DecodeStringBase64 | function | Decodes a Base64 encoded string and returns the decoded data as a string. |
EncodeStringBase64 | function | Encode a string with Base64 encoding and return the result as a string. |
Types
TBase64DecodingMode | enumeration | Decoding mode for stream. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
