generate .mht file programmatically

前端 未结 4 1138
醉话见心
醉话见心 2020-12-31 11:03

Does anybody know how to generate .mht file programmatically in C#, with embedded images in it? The thing is i have realised that .mht files are capable of embedding images

4条回答
  •  旧巷少年郎
    2020-12-31 11:12

    It is possible and has definitely been done by others - relevant material and libraries/source code:

    • RFC 2557 is the foundation of MHT format
    • VB.NET source code for generating MHT files from an URL
    • Chilkat MHT .NET library (commercial)
    • ASPNetMHT (commercial)
    • C# source code for generating MHT files from an URL
    • CDO.Message COM component, which exposes the IMessage interface

提交回复
热议问题