Hi,
I have a problem with file MHT reading.
I have stored the internet site with IE7 as "Webpage, complete (*.htm, *.html)". It store this site at my computer with all images in some external files.
After that I have stored this html and image collection as "Web Archive (*.mht)". The result is complete MHT file with all images inside. Then I have deleted old *.html and *.gif files and work with MHT file only. I can open this MHT file with IE7 without problem - all images are OK.
Now I try to read this MHT file with class
System.Windows.Forms.WebBrowser.
this
.webBrowser1 = new System.Windows.Forms.WebBrowser();
webBrowser1.Url =
new Uri("d:\my_mht_file.mht");
HtmlDocument
html_doc = webBrowser1.Document;
Variable html_doc has collection Images, but this collection is empty. I can't receive any images from MHT file.
This problem is linked to creating the MHT file from files (html and gif) have been stored on local computer. This MHT file includes all images with local links and bitmaps.
The question is
how can I extract such images from MHT file has been created from local copy of html and gif files?
Thanks