TsgcWSPClient_PresenceProperties › EncodeBase64

EncodeBase64 Property

Base64-encodes the message payload before sending to keep binary-safe transport.

Syntax

property EncodeBase64: Boolean read FEncodeBase64 write FEncodeBase64;

Default Value

Remarks

When True, the payload of every outbound Presence message is Base64-encoded before being written to the transport and decoded automatically on reception. Enable this when the text you publish may contain characters that interfere with the JSON envelope or when you carry binary data as strings. Default is False. Both ends must agree on the setting.

Example

oPresence.EncodeBase64 := True;

Back to Properties