Windows Vista Tips

Windows Vista Tips > Newsgroups > Internet Explorer > Can IE8 open ".mht" file with images correctly?


Reply
Fix Vista Errors
Thread Tools Display Modes

Can IE8 open ".mht" file with images correctly?

 
 
Liven
Guest
Posts: n/a

 
      10-22-2009
Hello,
I posted a similar question before and got no answer:
http://www.microsoft.com/communities...&cr=&sloc=&p=1

So I make the question simple, can IE8 open a ".mht" file with images
correctly?

Because in my case, IE8 translates the urls in the ".mht" to its
original url, but not the url in the ".mht" file though it already packed the
images into the ".mht" file.

PS: The ".mht" file is saved with IE8 and can be opened correctly with
IE6.

Thanks to anyone shows me a clue!
 
Reply With Quote
 
 
 
 
Donald Anadell
Guest
Posts: n/a

 
      10-22-2009

"Liven" <> wrote in message
news:B2063163-44A8-461A-A4C6-...
> Hello,
> I posted a similar question before and got no answer:
> http://www.microsoft.com/communities...&cr=&sloc=&p=1
>


> So I make the question simple, can IE8 open a ".mht" file with images
> correctly?


Yes, IE8 can open saved MHT files with images correctly.

In your original post, you listed your example code as the following:

<html><body><img src="Zapotec.bmp"/></body></html>

Take the forward slash mark "/" out of the image tag in your test markup and
then try saving it as an MHT file, see if that doesn't make a difference.

Good luck,

Donald Anadell


>
> Because in my case, IE8 translates the urls in the ".mht" to its
> original url, but not the url in the ".mht" file though it already packed
> the
> images into the ".mht" file.
>
> PS: The ".mht" file is saved with IE8 and can be opened correctly with
> IE6.
>
> Thanks to anyone shows me a clue!



 
Reply With Quote
 
Donald Anadell
Guest
Posts: n/a

 
      10-22-2009

"Liven" <> wrote in message
news:B2063163-44A8-461A-A4C6-...
> Hello,


> I posted a similar question before and got no answer:


PS

Your original post never did not make it to the NNTP server, while it may be
showing in the web interface, most who post here regularly use a proper News
Reader to read and post to this newsgroup. This would explain why you
didn't recieve a reply to your original post.

Suggestion:

Use a proper News Reader to view and post to this Usenet newsgroup.

Good luck,

Donald Anadell


> http://www.microsoft.com/communities...&cr=&sloc=&p=1
>
> So I make the question simple, can IE8 open a ".mht" file with images
> correctly?
>
> Because in my case, IE8 translates the urls in the ".mht" to its
> original url, but not the url in the ".mht" file though it already packed
> the
> images into the ".mht" file.
>
> PS: The ".mht" file is saved with IE8 and can be opened correctly with
> IE6.
>
> Thanks to anyone shows me a clue!



 
Reply With Quote
 
Liven
Guest
Posts: n/a

 
      10-23-2009
Hello Donald,
Thank you very much for your answering. But I cannot connect to
msnews.microsoft.com with Outlook Express, maybe my ISP or router blocked the
119 port...

And for the question, I took more tests, and found that it may not have
relationship with the slash mark, but the name of the parent directory with
spaces.

Take the one-line-html with an image in my original post as example, if
I put them in a directory that no spaces in its path(For
example:"C:\CustDir"), it will be OK. But if I put them in a directory with
spaces (like "C:\Cust Dir"), the url will be not translated correctly in IE8.

I will try to paste two examples here, to make it more clear.
Save below text to a file with name "1.mht"
From: <Saved by Windows Internet Explorer 8>
Subject:
Date: Fri, 23 Oct 2009 12:37:23 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_0000_01CA53DD.91D677F0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01CA53DD.91D677F0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: file://C:\CustDir\1.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18702"></HEAD>
<BODY><IMG src=3D"file:///C:/CustDir/1.bmp" width=3D50 =
height=3D50></BODY></HTML>

------=_NextPart_000_0000_01CA53DD.91D677F0
Content-Type: image/bmp
Content-Transfer-Encoding: base64
Content-Location: file:///C:/CustDir/1.bmp

Qk1CAAAAAAAAAD4AAAAoAAAAAQAAAAEAAAABAAEAAAAAAAQAAA AAAAAAAAAAAAAAAAAAAAAAAAAA
AP///wAAAAAA

------=_NextPart_000_0000_01CA53DD.91D677F0--





And save below text to a file with name "2.mht"
From: <Saved by Windows Internet Explorer 8>
Subject:
Date: Fri, 23 Oct 2009 12:37:07 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_0000_01CA53DD.88A7B310"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01CA53DD.88A7B310
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: file://C:\Cust Dir\2.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18702"></HEAD>
<BODY><IMG src=3D"file:///C:/Cust%20Dir/2.bmp" width=3D50 =
height=3D50></BODY></HTML>

------=_NextPart_000_0000_01CA53DD.88A7B310
Content-Type: image/bmp
Content-Transfer-Encoding: base64
Content-Location: file:///C:/Cust%20Dir/2.bmp

Qk1CAAAAAAAAAD4AAAAoAAAAAQAAAAEAAAABAAEAAAAAAAQAAA AAAAAAAAAAAAAAAAAAAAAAAAAA
AP///wAAAAAA

------=_NextPart_000_0000_01CA53DD.88A7B310--




You will see 1.mht will be shown correctly in IE8, while 2.mht will not
show the image. But they will both be shown in IE6.

Any clue?

Thank you!
 
Reply With Quote
 
Liven
Guest
Posts: n/a

 
      10-23-2009
I found the text I pasted is trimmed white space, and could not be parsed by
IE.
You should add a white space (tab character or space character) at the
beginning of 3 lines in each example, they are:
line 6: type="text/html";
line 7: boundary="----=_NextPart_000_0000_01CA53DD.88A7B310"
line 14: charset="Windows-1252"
 
Reply With Quote
 
Donald Anadell
Guest
Posts: n/a

 
      10-23-2009

"Liven" <> wrote in message
news:70F02757-09E0-412B-AE9A-...
> Hello Donald,
> Thank you very much for your answering. But I cannot connect to
> msnews.microsoft.com with Outlook Express, maybe my ISP or router blocked
> the
> 119 port...
>
> And for the question, I took more tests, and found that it may not have
> relationship with the slash mark, but the name of the parent directory
> with
> spaces.


The only way I was able to duplicate your issue(image not showing in saved
MHT file) was using your original IMG tag that had the forwad slash mark "/"
in it.

I can not duplicate your issue here when testing from folders with spaces in
the folder name.

Using this simple code example:

<HTML>
<HEAD>
<BODY>
<IMG src="some.bmp">
</BODY>
</HTML>

Renders the image in saved MHT files regardless of whether there are spaces
in the directory name here.

Good luck,

Donald Anadell


>
> Take the one-line-html with an image in my original post as example, if
> I put them in a directory that no spaces in its path(For
> example:"C:\CustDir"), it will be OK. But if I put them in a directory
> with
> spaces (like "C:\Cust Dir"), the url will be not translated correctly in
> IE8.
>
> I will try to paste two examples here, to make it more clear.
> Save below text to a file with name "1.mht"
> From: <Saved by Windows Internet Explorer 8>
> Subject:
> Date: Fri, 23 Oct 2009 12:37:23 +0800
> MIME-Version: 1.0
> Content-Type: multipart/related;
> type="text/html";
> boundary="----=_NextPart_000_0000_01CA53DD.91D677F0"
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0000_01CA53DD.91D677F0
> Content-Type: text/html;
> charset="Windows-1252"
> Content-Transfer-Encoding: quoted-printable
> Content-Location: file://C:\CustDir\1.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Dwindows-1252" =
> http-equiv=3DContent-Type>
> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18702"></HEAD>
> <BODY><IMG src=3D"file:///C:/CustDir/1.bmp" width=3D50 =
> height=3D50></BODY></HTML>
>
> ------=_NextPart_000_0000_01CA53DD.91D677F0
> Content-Type: image/bmp
> Content-Transfer-Encoding: base64
> Content-Location: file:///C:/CustDir/1.bmp
>
> Qk1CAAAAAAAAAD4AAAAoAAAAAQAAAAEAAAABAAEAAAAAAAQAAA AAAAAAAAAAAAAAAAAAAAAAAAAA
> AP///wAAAAAA
>
> ------=_NextPart_000_0000_01CA53DD.91D677F0--
>
>
>
>
>
> And save below text to a file with name "2.mht"
> From: <Saved by Windows Internet Explorer 8>
> Subject:
> Date: Fri, 23 Oct 2009 12:37:07 +0800
> MIME-Version: 1.0
> Content-Type: multipart/related;
> type="text/html";
> boundary="----=_NextPart_000_0000_01CA53DD.88A7B310"
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0000_01CA53DD.88A7B310
> Content-Type: text/html;
> charset="Windows-1252"
> Content-Transfer-Encoding: quoted-printable
> Content-Location: file://C:\Cust Dir\2.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Dwindows-1252" =
> http-equiv=3DContent-Type>
> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18702"></HEAD>
> <BODY><IMG src=3D"file:///C:/Cust%20Dir/2.bmp" width=3D50 =
> height=3D50></BODY></HTML>
>
> ------=_NextPart_000_0000_01CA53DD.88A7B310
> Content-Type: image/bmp
> Content-Transfer-Encoding: base64
> Content-Location: file:///C:/Cust%20Dir/2.bmp
>
> Qk1CAAAAAAAAAD4AAAAoAAAAAQAAAAEAAAABAAEAAAAAAAQAAA AAAAAAAAAAAAAAAAAAAAAAAAAA
> AP///wAAAAAA
>
> ------=_NextPart_000_0000_01CA53DD.88A7B310--
>
>
>
>
> You will see 1.mht will be shown correctly in IE8, while 2.mht will not
> show the image. But they will both be shown in IE6.
>
> Any clue?
>
> Thank you!



 
Reply With Quote
 
Liven
Guest
Posts: n/a

 
      10-24-2009
It's weird, in my computer with IE8, whether I put or not a slash mark to
close the image tag, it will not affect the testing result...
And in html grammer, isn't that tag should be closed by a slash mark?
I'm cofused, because two friends of me took the same test and got the same
result with me, or is it related with the OS? My testing are done on WinXP.

Have you saved the two examples in my last post and have a try? If it's
saving is complicated, could I send you a mail with the two ".mht" files as
attachments?
Thank you very much!

Best Regards!

"Donald Anadell" <> дÈëÏûÏ¢ÐÂÎÅ: ...
>
> "Liven" <> wrote in message
> news:70F02757-09E0-412B-AE9A-...
>
> The only way I was able to duplicate your issue(image not showing in saved
> MHT file) was using your original IMG tag that had the forwad slash mark
> "/" in it.
>
> I can not duplicate your issue here when testing from folders with spaces
> in the folder name.
>
> Using this simple code example:
>
> <HTML>
> <HEAD>
> <BODY>
> <IMG src="some.bmp">
> </BODY>
> </HTML>
>
> Renders the image in saved MHT files regardless of whether there are
> spaces in the directory name here.
>
> Good luck,
>
> Donald Anadell



 
Reply With Quote
 
Liven
Guest
Posts: n/a

 
      10-24-2009
Oh, and one more thing: have you deleted the original html and image files
after "saved as mht"?


 
Reply With Quote
 
Donald Anadell
Guest
Posts: n/a

 
      10-24-2009

"Liven" <> wrote in message
news:...

> It's weird, in my computer with IE8, whether I put or not a slash mark to
> close the image tag, it will not affect the testing result...


Then you have something else going on with your system that I'm not aware
of.

> And in html grammer, isn't that tag should be closed by a slash mark?


No. The forward slash in the IMG tag is invalid for HTML markup and
shouldn't be there - it is required for XHTML though.

> I'm cofused, because two friends of me took the same test and got the same
> result with me, or is it related with the OS? My testing are done on
> WinXP.


My testing was also done with IE8 on Windows XP SP3, and the only way I was
able to reproduce your issue was by using the IMG tag with the invalid
forward slash in the HTML markup.

Sorry I don't have anything else to offer you on this problem.

Good luck,

Donald Anadell


>
> Have you saved the two examples in my last post and have a try? If it's
> saving is complicated, could I send you a mail with the two ".mht" files
> as attachments?
> Thank you very much!
>
> Best Regards!
>
> "Donald Anadell" <>
> дÈëÏûÏ¢ÐÂÎÅ: ...
>>
>> "Liven" <> wrote in message
>> news:70F02757-09E0-412B-AE9A-...
>>
>> The only way I was able to duplicate your issue(image not showing in
>> saved MHT file) was using your original IMG tag that had the forwad slash
>> mark "/" in it.
>>
>> I can not duplicate your issue here when testing from folders with spaces
>> in the folder name.
>>
>> Using this simple code example:
>>
>> <HTML>
>> <HEAD>
>> <BODY>
>> <IMG src="some.bmp">
>> </BODY>
>> </HTML>
>>
>> Renders the image in saved MHT files regardless of whether there are
>> spaces in the directory name here.
>>
>> Good luck,
>>
>> Donald Anadell

>
>



 
Reply With Quote
 
Donald Anadell
Guest
Posts: n/a

 
      10-24-2009

"Liven" <> wrote in message
news:...
> Oh, and one more thing: have you deleted the original html and image files
> after "saved as mht"?


Yes! In my testing here I used a folder that had spaces in the folder name
and also deleted the original HTML file and Image file from the folder after
the MHT file was created. None of this affected the image being shown in
the MHT file.

Again, the only way I was able to reproduce your issue here is to use the
invalid forward slash "/" in the HTML markup for the Image Tag.

Sorry I don't have anything else to offer you.

Good luck,

Donald Anadell


>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Open Sores Software Sucks BRUCE STARINSKI Windows Vista General Discussion 8 10-22-2009 10:18 PM
Open unknown file types AronJ Windows Vista File Management 4 12-04-2007 11:53 AM
Directory symbolic link not recognized as folder in open file dial Bjorn Windows Vista File Management 3 11-25-2007 05:55 PM
cloning laptop sata harddrive vista premium Mark Ryan Windows Vista Hardware 5 04-26-2007 06:44 PM
mmc.exe error, cannot run. olouvignes Windows Vista Installation 4 04-18-2007 02:40 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59