Table of Contents

TTMSFNCUtils.Decode64ToBytes Method

Decodes a Base64 string to bytes.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function Decode64ToBytes(const AValue: string; const AURL: Boolean = False): TBytes; overload;

Parameters

Name Description
AValue Base64 string to decode.
AURL When True, treats AValue as URL-safe Base64. Defaults to False.

Returns

Decoded bytes, or nil when the input is empty.