TsgcWSPServer_DatasetProperties › EncodeBase64

EncodeBase64 Property

Encode string and blob field values as Base64 to protect non-ASCII or binary payloads.

Syntax

property EncodeBase64: Boolean read FEncodeBase64 write FEncodeBase64;

Default Value

Remarks

When True, field values are wrapped in Base64 before serialisation, making it safe to ship binary blobs or strings containing characters that would otherwise break JSON or trigger character set conversion issues over the WebSocket. Clients must use the same setting so values are decoded on receipt. Leave it False (the default) for lightweight text-only datasets where Base64 overhead is unnecessary.

Example

oProtocol.EncodeBase64 := True;

Back to Properties