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