如何使用C#读取字节文件中的.msg大小
我有一个Outlook .msg文件,该文件被视为附件文件。我想使用C#计算其在字节中的大小。我可以使用MSGREADER计算出.msg文件以外的其他文件格式的大小。问题是MSGreader中的.msg文件类型是msgreader.outlook.storage.storage.message,而不是msgreader.outlook.storage.attarachment。因此,我无法获得其数据属性。我认为解决方案是将消息类型转换为附件类型,但我不知道该怎么做。
I have an outlook .msg file that is treated as an attachment file. I want to calculate its size in byte using C#. I can calculate the size of other file formats other than .msg file using MsgReader. The problem is that the .msg file type in MsgReader is MsgReader.Outlook.Storage.Message and not MsgReader.Outlook.Storage.Attachment. So I cannot get its Data property. I think the solution is to convert Message type to Attachment type but I don't know how to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论