Table of Contents

TTMSFNCCloudMicrosoftOutlookMail.ImageToBase64 Method

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

API unit family: TMSFNCCloudMicrosoftOutlookMail Declaring type: TTMSFNCCloudMicrosoftOutlookMail Inherited from: TTMSFNCCustomCloudMicrosoftOutlookMail

Syntax

function ImageToBase64(const AFileName: TTMSFNCUtilsFile; AIncludeImgTag: Boolean = True): string;

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.