generate .mht file programmatically

chosenOne Thabs picture chosenOne Thabs · Apr 3, 2012 · Viewed 17.8k times · Source

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 in them, and this embedded images moves with the whole file(mht) when you change its location. And this file can be viewed on different browsers, including IE 6.

I was told to try Data Url Scheme technique. But it couldn't work because its not supported by other browsers. e.g IE 6.

Answer

Yahia picture Yahia · Apr 3, 2012

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