System::SharedPtr<MapiAttachment> attachment = attachments->idx_get(attachmentIndex);
if(attachment)
{
System::SharedPtr<System::IO::MemoryStream> stream = attachment->ToMemoryStream();
}
stream把整个附件的数据都读到内存了,大文件的话需要分块…...cpp 获取PST文件中邮件的附件数据,可以分块读取吗 中文技术支持 email-pst , email-cpp...Load the PST file System::SharedPtr<PersonalStorage> pst = Pers...