Skip to main content
Table of Contents

TTMSFNCUtils.SaveBitmapToBase64 Method

Encodes the current bitmap content as a Base64 string.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function SaveBitmapToBase64(const ABitmap: TTMSFNCBitmapHelperClass; const AURL: Boolean = False): string;
__classmethod System::UnicodeString __fastcall SaveBitmapToBase64(TTMSFNCBitmapHelperClass* const ABitmap, const bool AURL = false);

Parameters

Name Description
ABitmap Bitmap to encode.
AURL When True, produces URL-safe Base64. Defaults to False.

Returns

Base64 representation of the bitmap stream, or an empty string when the bitmap has no content.