We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Re: saving inline image from msg file

Hi

I am able to read attchments from msg file.

But there are some inline images that come as attachment.
Following is the code.

Mapimessage asposeMailObj;

MapiAttachmentCollection attachments = asposeMailObj.Attachments;
foreach (MapiAttachment attachObj in attachments)
{
FileName = attachObj.FileName;
s.DisplayName = attachObj.DisplayName;
AsArray = attachObj.BinaryData;
}





Things I need :

1> how to identify that particular attachment is an inline image
2> how to find the content id of such inline image
3>Please give the sample code for the above

Thanks
Amol Sonawane

Hi Amol,


Thank you for writing to us.

In order to differentiate between regular attachments and inline images, I would request you to please have a look at our online article: Differentiating between Inline and Regular attachments. It contains complete example for differentiating between these two type of attachments based on the message body type. Please try it with your sample message file and let us know your feedback.