Table of Contents

TTMSFNCCloudGoogleGmailMessageAttachment Class

Represents a single attachment of a message, holding its identifier, file name, size and base64-encoded data.

API unit family: TMSFNCCloudGoogleGmail Inherits from: TCollectionItem

Syntax

TTMSFNCCloudGoogleGmailMessageAttachment = class(TCollectionItem)

Properties

Name Description
ContentID Content identifier used to reference the attachment as an inline image inside the message body.
Data Base64-encoded data of the attachment, populated after the attachment is downloaded.
FileName File name of the attachment.
ID Identifier of the attachment, used to download its data.
MimeType MIME type of the attachment, for example "image/png".
Size Size of the attachment in bytes.

Methods

Name Description
SaveToFile Decodes the attachment data and writes it to the specified file.
SaveToStream Decodes the attachment data and writes it to the specified stream.