Hi
I want to read the msg file using following code.
: {
mapimessageclass p_asposeMailObj.=mapimessageclass.fromfile(msgpath) // mapimessageclass object
MapiAttachmentCollection attachments = p_asposeMailObj.Attachments;
foreach (MapiAttachment attachObj in attachments)
{
Attachment sysAttachObj = new Attachment();
FileName = attachObj.FileName;
DisplayName = attachObj.DisplayName;
AsArray = attachObj.BinaryData;
attachObj.Save(attachsavepath);
}
}
Now it saves the attachments in the attachsavepath but only able
to save first 3 attchment after that the attchment are saved but cant be open it shows file is corrupted.
we also observed that the byte array of attachment (attachObj.BinaryData) is not proper.
can you please tell us what it the exact issue.
Thanks
Amol
to save first 3 attchment after that the attchment are saved but cant be open it shows file is corrupted.
we also observed that the byte array of attachment (attachObj.BinaryData) is not proper.
can you please tell us what it the exact issue.
Thanks
Amol