Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: SAVE Message attachment to disk folder

$
0
0
Hi vladang,

to save the attachment to a given folder you can use the method Attachment.SaveFile(string folderPath):
foreach (var attachment in m.Attachments)
{
         attachment.SaveFile(@"C:\FolderWithAttachments\");
}
Another options is accessing the property Attachment.FileData and write the byte array directly to disk.

I recommend you taking a look at the sample application, it has sample code for all major tasks.



Best regards,

Pavel Azanov

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>