System.NetEncoding.TBase64Encoding
Delphi
TBase64Encoding = class(TCustomBase64Encoding)
C++
class PASCALIMPLEMENTATION TBase64Encoding : public TCustomBase64Encoding
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.NetEncoding.pas System.NetEncoding.hpp |
System.NetEncoding | System.NetEncoding |
Description
Provides methods to encode and decode data in base64 format.
To use TBase64Encoding you usually do not need to create your own instance. You can use TNetEncoding.Base64 instead.
TBase64Encoding provides the following methods:
Encoding | Decoding | ||||
---|---|---|---|---|---|
Input | Method | Output | Input | Method | Output |
For example:
Encode('Example')
returns'RXhhbXBsZQ=='
.Decode('RXhhbXBsZQ==')
returns'Example'
.
Input Strings for Decode and DecodeStringToBytes should be UTF8 encoded.