Mapi Attachment

Hello

Dim MSG As MapiMessage = MapiMessage.Load(msg, opt)
Dim FFT As FileFormatType = FileFormatUtil.DetectFileFormat(MSG.Attachments.Item(x).ContentStream).FileFormatType

Process attachment based on FFT/FileFormatType…

While there’s MailMessage.ContentStream which allows this operation, and MapiMessage does not have such property as ContentStream, please advise if the only way is to save each attachment to a memory stream and check it, or can we expect to have MapiAttachment.ContentStream ?

@australian.dev.nerds,

Yes, the only way is to save each attachment to a memory stream. If we were to add a MapiAttachment.ContentStream, we would do the same thing internally.