Skip to main content
Table of Contents

TTMSFNCCustomCloudMicrosoftOutlookMail.ImageToBase64 Method

Encodes a local image file as a Base64 string for embedding in an HTML message.

API unit family: TMSFNCCloudMicrosoftOutlookMail Declaring type: TTMSFNCCustomCloudMicrosoftOutlookMail

Syntax

FMX.TMSFNCCloudMicrosoftOutlookMail.hppPascalC++
function ImageToBase64(const AFileName: TTMSFNCUtilsFile; AIncludeImgTag: Boolean = True): string;
System::UnicodeString __fastcall ImageToBase64(const TTMSFNCUtilsFile AFileName, bool AIncludeImgTag = true);

Parameters

Name Description
AFileName Local image file to encode.
AIncludeImgTag When True, wraps the encoded data in an HTML img tag.

Returns

The Base64-encoded image, optionally wrapped in an img tag.