Table of Contents

TTMSMCPSamplingMessageContent.CreateImage Method

Creates image content.

API unit family: TMS.MCP.Sampling Declaring type: TTMSMCPSamplingMessageContent

Syntax

class function CreateImage(const AData, AMimeType: string): TTMSMCPSamplingMessageContent; static;

Parameters

Name Description
AData Image bytes, base64-encoded.
AMimeType Media type of the image, for example 'image/png'.

Returns

New content of kind smctImage, owned by the caller until it is handed to a message.