Skip to main content
Table of Contents

TTMSFNCUtils.Decode64ToBytes Method

Decodes a Base64 string to bytes.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function Decode64ToBytes(const AValue: string; const AURL: Boolean = False): TBytes; overload;
__classmethod System::Sysutils::TBytes __fastcall Decode64ToBytes(const System::UnicodeString AValue, const bool AURL = false)/* 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.