Table of Contents

Constructor EmbeddedAttachmentPicture

Namespace
MailFathom.Application.Emails.Extraction.Attachments
Assembly
MailFathom.Application.dll

EmbeddedAttachmentPicture(int, string, ReadOnlyMemory<byte>)

One picture a document carries, copied out of it so a model can read what it holds.

public EmbeddedAttachmentPicture(int PageNumber, string MediaType, ReadOnlyMemory<byte> Octets)

Parameters

PageNumber int

The one-based page, slide, or sheet the picture sits on, matching the number of the segment it belongs to.

MediaType string

The media type read from the picture's own header rather than from anything the document declared.

Octets ReadOnlyMemory<byte>

The picture exactly as the document stores it, never decoded here.

Remarks

The octets are a sender's, and they are held only between the read and the describing call: nothing stores them, logs them, or hands them anywhere but the describer, which applies every refusal it applies to an image attachment.