When viewing MHTML files in IE7, none of the images are visible. (They are
all displayed with the red "X" icon.), unless access to the original image
source is available. Does this not defeat the purpose of MHTML? (Being
portable.)

Is it possible to save a HTML document as a single file and then view that
file on another machine that does not have access to the original content?

Thanks!

Re: Missing images in MHTML by rob^_^

rob^_^
Thu Aug 28 15:02:47 PDT 2008

Hi Terry,

MHTML files are simply zipped content. Rename the extension to .zip and have
a look with you compressed file viewer. There are security reasons for not
including some content in the zipped impressions. If they come from
third-party sites or they do not meet your Privacy settings criteria they
can reveal your surfing history just as cookies can.

Regards.

"Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
message news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
> When viewing MHTML files in IE7, none of the images are visible. (They
> are
> all displayed with the red "X" icon.), unless access to the original image
> source is available. Does this not defeat the purpose of MHTML? (Being
> portable.)
>
> Is it possible to save a HTML document as a single file and then view that
> file on another machine that does not have access to the original content?
>
> Thanks!
>

Re: Missing images in MHTML by Robert

Robert
Thu Aug 28 17:12:48 PDT 2008

"Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in message
news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
> When viewing MHTML files in IE7, none of the images are visible. (They are
> all displayed with the red "X" icon.), unless access to the original image
> source is available. Does this not defeat the purpose of MHTML? (Being
> portable.)
>

> Is it possible to save a HTML document as a single file and then view that
> file on another machine that does not have access to the original content?


Only if the content provider lets you to do that. E.g. the images may not be
cacheable.

Post an example URL which you think should be savable in that form,
if you want more help.


>
> Thanks!
>



Re: Missing images in MHTML by TerryRasmussen

TerryRasmussen
Fri Aug 29 04:53:01 PDT 2008

Robert,

Thank you for writing back.

I am actually using a web page that I have created locally, that uses all
local content. For example, I create a simple HTML page that displays a
small graphic that is resident on one of my local hard drives:

<html>
<head>
<title>Test</title>
</head>
<body>
<p>Test</p>
<p><img border="0" src="D:\Sample Images\Ratios\133x200.jpg" width="133"
height="200"></p>
</body>
</html>

I can open this file OK in IE7, save it as a MHTML (MHT) file and transfer
it to another computer. The second computer can open the file in IE7, but
the image does not display. As far as I can tell, the MHT file is valid; I
can open it in Notepad and see the embedded image data. The original HTML
file is only 177 bytes, and the graphic about 14K. The MHT file is over 24K.

I simply appears that IE7 ignores the embedded image and instead attempts to
display the image from the original path/file name (which obviously does not
exist on the second machine).

I appreciate any further thoughts you have!
Terry






"Robert Aldwinckle" wrote:

> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in message
> news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
> > When viewing MHTML files in IE7, none of the images are visible. (They are
> > all displayed with the red "X" icon.), unless access to the original image
> > source is available. Does this not defeat the purpose of MHTML? (Being
> > portable.)
> >
>
> > Is it possible to save a HTML document as a single file and then view that
> > file on another machine that does not have access to the original content?
>
>
> Only if the content provider lets you to do that. E.g. the images may not be
> cacheable.
>
> Post an example URL which you think should be savable in that form,
> if you want more help.
>
>
> >
> > Thanks!
> >
>
>
>

Re: Missing images in MHTML by TerryRasmussen

TerryRasmussen
Fri Aug 29 04:57:00 PDT 2008

Thank you for the reply, rob.

Unfortunately, I cannot get your recommendations to work. WinZip (version
11.1) does not recognize a MHT file renamed to ZIP as a valid archive file.
However, I am fairly certain that the content is being "zipped" up in the MHT
file correctly. Please see my response to Robert Aldwinckle below - I have
provided some additional information.

Thanks!
Terry



"rob^_^" wrote:

> Hi Terry,
>
> MHTML files are simply zipped content. Rename the extension to .zip and have
> a look with you compressed file viewer. There are security reasons for not
> including some content in the zipped impressions. If they come from
> third-party sites or they do not meet your Privacy settings criteria they
> can reveal your surfing history just as cookies can.
>
> Regards.
>
> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
> message news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
> > When viewing MHTML files in IE7, none of the images are visible. (They
> > are
> > all displayed with the red "X" icon.), unless access to the original image
> > source is available. Does this not defeat the purpose of MHTML? (Being
> > portable.)
> >
> > Is it possible to save a HTML document as a single file and then view that
> > file on another machine that does not have access to the original content?
> >
> > Thanks!
> >

Re: Missing images in MHTML by Robert

Robert
Fri Aug 29 06:32:56 PDT 2008

"Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in message
news:B3844844-0579-461C-915D-CD31F3237610@microsoft.com...
> Robert,
>
> Thank you for writing back.
>
> I am actually using a web page that I have created locally, that uses all
> local content. For example, I create a simple HTML page that displays a
> small graphic that is resident on one of my local hard drives:
>
> <html>
> <head>
> <title>Test</title>
> </head>
> <body>
> <p>Test</p>
> <p><img border="0" src="D:\Sample Images\Ratios\133x200.jpg" width="133"
> height="200"></p>
> </body>
> </html>
>

> I can open this file OK in IE7,


Then the image is not cached.


> save it as a MHTML (MHT) file


So the image does not need to be included in the MHTML file.


> and transfer it to another computer.


Still with your local referencees in the HTML?


> The second computer can open the file in IE7, but the image does not display.


Because the second computer does not have that file.
Transfer that file separately and have the user save it with the same path
and filename and the image will display.


> As far as I can tell, the MHT file is valid; I
> can open it in Notepad and see the embedded image data. The original HTML
> file is only 177 bytes, and the graphic about 14K. The MHT file is over 24K.
>
> I simply appears that IE7 ignores the embedded image and instead attempts to
> display the image from the original path/file name (which obviously does not
> exist on the second machine).


I'm surprised that the image is transferred. I still think the problem is the HTML
but now that suggests a workaround: E-mail your MHTML file either as is
or as a MIME attachment. Then your user can save the file with any path and filename
revise the HTML if necessary to point to it and then be able to use the HTML
as designed.

As an alternative see what happens if you use File, Send, Page by E-mail.
That could allow your E-mail client to create an E-mail with the necessary
attachments and perhaps even allow the image(s) to be rendered from the
E-mail, not local files. Then that could be saved by the user as an .MHT
and rendered by IE as if it was originally not local. E.g. IE would be rendering
by using the cached reference that OE would create and having to use a copy
of it from the TIF instead. That would save your correspondent from either
having to save the file locally or modify your HTML.

Tip: it will probably be helpful for you to watch all the file creation and accessing
that has to happen by running FileMon (or ProcMon.)


Good luck

Robert
---


>
> I appreciate any further thoughts you have!
> Terry
>
>
>
>
>
>
> "Robert Aldwinckle" wrote:
>
>> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in message
>> news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
>> > When viewing MHTML files in IE7, none of the images are visible. (They are
>> > all displayed with the red "X" icon.), unless access to the original image
>> > source is available. Does this not defeat the purpose of MHTML? (Being
>> > portable.)
>> >
>>
>> > Is it possible to save a HTML document as a single file and then view that
>> > file on another machine that does not have access to the original content?
>>
>>
>> Only if the content provider lets you to do that. E.g. the images may not be
>> cacheable.
>>
>> Post an example URL which you think should be savable in that form,
>> if you want more help.
>>
>>
>> >
>> > Thanks!
>> >
>>
>>
>>



Re: Missing images in MHTML by Donald

Donald
Fri Aug 29 08:36:10 PDT 2008


"Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
message news:77B00268-1E5A-46B1-BC32-5595D2D40276@microsoft.com...
> Thank you for the reply, rob.
>
> Unfortunately, I cannot get your recommendations to work. WinZip (version
> 11.1) does not recognize a MHT file renamed to ZIP as a valid archive
> file.

Rename the .mht extension to .uue extension, WinZip should then open the
file and show it's contents.

Good luck,

Donald Anadell


> However, I am fairly certain that the content is being "zipped" up in the
> MHT
> file correctly. Please see my response to Robert Aldwinckle below - I
> have
> provided some additional information.
>
> Thanks!
> Terry
>
>
>
> "rob^_^" wrote:
>
>> Hi Terry,
>>
>> MHTML files are simply zipped content. Rename the extension to .zip and
>> have
>> a look with you compressed file viewer. There are security reasons for
>> not
>> including some content in the zipped impressions. If they come from
>> third-party sites or they do not meet your Privacy settings criteria they
>> can reveal your surfing history just as cookies can.
>>
>> Regards.
>>
>> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
>> message news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
>> > When viewing MHTML files in IE7, none of the images are visible. (They
>> > are
>> > all displayed with the red "X" icon.), unless access to the original
>> > image
>> > source is available. Does this not defeat the purpose of MHTML?
>> > (Being
>> > portable.)
>> >
>> > Is it possible to save a HTML document as a single file and then view
>> > that
>> > file on another machine that does not have access to the original
>> > content?
>> >
>> > Thanks!
>> >



Re: Missing images in MHTML by TerryRasmussen

TerryRasmussen
Fri Aug 29 11:57:01 PDT 2008

Donald,

That worked - thanks! Using the sample that I provided in a response to
Robert Aldwinckle (below), WinZip shows two files:

0001.txt (when opened appears to be the original HTML document)
Unknown.001 (which I assume is the embedded image)

The other MHT files that I have created appear to be similar, containing the
0001.txt HTML file, and up to hundreds of Unknown.xxx files. So it appears
that the images are embedded. I just don't know why IE7 refused to actually
use the embedded data.

Thanks!
Terry




"Donald Anadell" wrote:

>
> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
> message news:77B00268-1E5A-46B1-BC32-5595D2D40276@microsoft.com...
> > Thank you for the reply, rob.
> >
> > Unfortunately, I cannot get your recommendations to work. WinZip (version
> > 11.1) does not recognize a MHT file renamed to ZIP as a valid archive
> > file.
>
> Rename the .mht extension to .uue extension, WinZip should then open the
> file and show it's contents.
>
> Good luck,
>
> Donald Anadell
>
>
> > However, I am fairly certain that the content is being "zipped" up in the
> > MHT
> > file correctly. Please see my response to Robert Aldwinckle below - I
> > have
> > provided some additional information.
> >
> > Thanks!
> > Terry
> >
> >
> >
> > "rob^_^" wrote:
> >
> >> Hi Terry,
> >>
> >> MHTML files are simply zipped content. Rename the extension to .zip and
> >> have
> >> a look with you compressed file viewer. There are security reasons for
> >> not
> >> including some content in the zipped impressions. If they come from
> >> third-party sites or they do not meet your Privacy settings criteria they
> >> can reveal your surfing history just as cookies can.
> >>
> >> Regards.
> >>
> >> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
> >> message news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
> >> > When viewing MHTML files in IE7, none of the images are visible. (They
> >> > are
> >> > all displayed with the red "X" icon.), unless access to the original
> >> > image
> >> > source is available. Does this not defeat the purpose of MHTML?
> >> > (Being
> >> > portable.)
> >> >
> >> > Is it possible to save a HTML document as a single file and then view
> >> > that
> >> > file on another machine that does not have access to the original
> >> > content?
> >> >
> >> > Thanks!
> >> >
>
>
>

Re: Missing images in MHTML by Donald

Donald
Fri Aug 29 13:30:29 PDT 2008


"Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
message news:0953EF6F-11A1-4D34-9659-DB727EF7B5CB@microsoft.com...
> Donald,
>
> That worked - thanks!

You are welcome.

> Using the sample that I provided in a response to
> Robert Aldwinckle (below), WinZip shows two files:
>
> 0001.txt (when opened appears to be the original HTML document)
> Unknown.001 (which I assume is the embedded image)

That's correct, the 0001.txt file would be your HTML document and the
UnKnown.001 file would be your image file.

>
> The other MHT files that I have created appear to be similar, containing
> the
> 0001.txt HTML file, and up to hundreds of Unknown.xxx files. So it
> appears
> that the images are embedded.

>I just don't know why IE7 refused to actually
> use the embedded data.

I don't know either right now, but I can tell you that the same behavior is
exhibited here. Using your HTML file as a template I created a .mht file on
a machine that is using IE6 and then ported ported that .mht file to a
machine that is running IE7, just as in your case, the image was not
displayed when the .mht file was opened in IE7.

I then created a .mht file on the machine with IE7 and ported it to the
machine that has IE6 on it and the image was displayed in the .mht file just
fine.

So on this end, creating a .mht file with IE7 and then porting that .mht
file to a machine with IE6 will display the images just fine. However,
creating a .mht file on a machine with either IE6 or IE7 and porting that
.mht file to a machine with IE7 will not display the images in the .mht
file.

Good luck,

Donald Anadell


>
> Thanks!
> Terry
>
>
>
>
> "Donald Anadell" wrote:
>
>>
>> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
>> message news:77B00268-1E5A-46B1-BC32-5595D2D40276@microsoft.com...
>> > Thank you for the reply, rob.
>> >
>> > Unfortunately, I cannot get your recommendations to work. WinZip
>> > (version
>> > 11.1) does not recognize a MHT file renamed to ZIP as a valid archive
>> > file.
>>
>> Rename the .mht extension to .uue extension, WinZip should then open the
>> file and show it's contents.
>>
>> Good luck,
>>
>> Donald Anadell
>>
>>
>> > However, I am fairly certain that the content is being "zipped" up in
>> > the
>> > MHT
>> > file correctly. Please see my response to Robert Aldwinckle below - I
>> > have
>> > provided some additional information.
>> >
>> > Thanks!
>> > Terry
>> >
>> >
>> >
>> > "rob^_^" wrote:
>> >
>> >> Hi Terry,
>> >>
>> >> MHTML files are simply zipped content. Rename the extension to .zip
>> >> and
>> >> have
>> >> a look with you compressed file viewer. There are security reasons for
>> >> not
>> >> including some content in the zipped impressions. If they come from
>> >> third-party sites or they do not meet your Privacy settings criteria
>> >> they
>> >> can reveal your surfing history just as cookies can.
>> >>
>> >> Regards.
>> >>
>> >> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
>> >> message news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
>> >> > When viewing MHTML files in IE7, none of the images are visible.
>> >> > (They
>> >> > are
>> >> > all displayed with the red "X" icon.), unless access to the original
>> >> > image
>> >> > source is available. Does this not defeat the purpose of MHTML?
>> >> > (Being
>> >> > portable.)
>> >> >
>> >> > Is it possible to save a HTML document as a single file and then
>> >> > view
>> >> > that
>> >> > file on another machine that does not have access to the original
>> >> > content?
>> >> >
>> >> > Thanks!
>> >> >
>>
>>
>>



Re: Missing images in MHTML by TerryRasmussen

TerryRasmussen
Tue Sep 02 06:17:09 PDT 2008

Donald,

Thank you for taking the time to replicate the problem. At least I now know
that the problem isn't me! :) Looks like I have to come up with a home grown
solution.

Thanks!
Terry


"Donald Anadell" wrote:

>
> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
> message news:0953EF6F-11A1-4D34-9659-DB727EF7B5CB@microsoft.com...
> > Donald,
> >
> > That worked - thanks!
>
> You are welcome.
>
> > Using the sample that I provided in a response to
> > Robert Aldwinckle (below), WinZip shows two files:
> >
> > 0001.txt (when opened appears to be the original HTML document)
> > Unknown.001 (which I assume is the embedded image)
>
> That's correct, the 0001.txt file would be your HTML document and the
> UnKnown.001 file would be your image file.
>
> >
> > The other MHT files that I have created appear to be similar, containing
> > the
> > 0001.txt HTML file, and up to hundreds of Unknown.xxx files. So it
> > appears
> > that the images are embedded.
>
> >I just don't know why IE7 refused to actually
> > use the embedded data.
>
> I don't know either right now, but I can tell you that the same behavior is
> exhibited here. Using your HTML file as a template I created a .mht file on
> a machine that is using IE6 and then ported ported that .mht file to a
> machine that is running IE7, just as in your case, the image was not
> displayed when the .mht file was opened in IE7.
>
> I then created a .mht file on the machine with IE7 and ported it to the
> machine that has IE6 on it and the image was displayed in the .mht file just
> fine.
>
> So on this end, creating a .mht file with IE7 and then porting that .mht
> file to a machine with IE6 will display the images just fine. However,
> creating a .mht file on a machine with either IE6 or IE7 and porting that
> ..mht file to a machine with IE7 will not display the images in the .mht
> file.
>
> Good luck,
>
> Donald Anadell
>
>
> >
> > Thanks!
> > Terry
> >
> >
> >
> >
> > "Donald Anadell" wrote:
> >
> >>
> >> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
> >> message news:77B00268-1E5A-46B1-BC32-5595D2D40276@microsoft.com...
> >> > Thank you for the reply, rob.
> >> >
> >> > Unfortunately, I cannot get your recommendations to work. WinZip
> >> > (version
> >> > 11.1) does not recognize a MHT file renamed to ZIP as a valid archive
> >> > file.
> >>
> >> Rename the .mht extension to .uue extension, WinZip should then open the
> >> file and show it's contents.
> >>
> >> Good luck,
> >>
> >> Donald Anadell
> >>
> >>
> >> > However, I am fairly certain that the content is being "zipped" up in
> >> > the
> >> > MHT
> >> > file correctly. Please see my response to Robert Aldwinckle below - I
> >> > have
> >> > provided some additional information.
> >> >
> >> > Thanks!
> >> > Terry
> >> >
> >> >
> >> >
> >> > "rob^_^" wrote:
> >> >
> >> >> Hi Terry,
> >> >>
> >> >> MHTML files are simply zipped content. Rename the extension to .zip
> >> >> and
> >> >> have
> >> >> a look with you compressed file viewer. There are security reasons for
> >> >> not
> >> >> including some content in the zipped impressions. If they come from
> >> >> third-party sites or they do not meet your Privacy settings criteria
> >> >> they
> >> >> can reveal your surfing history just as cookies can.
> >> >>
> >> >> Regards.
> >> >>
> >> >> "Terry Rasmussen" <TerryRasmussen@discussions.microsoft.com> wrote in
> >> >> message news:F7766E38-623A-487F-8962-0130B2A6A882@microsoft.com...
> >> >> > When viewing MHTML files in IE7, none of the images are visible.
> >> >> > (They
> >> >> > are
> >> >> > all displayed with the red "X" icon.), unless access to the original
> >> >> > image
> >> >> > source is available. Does this not defeat the purpose of MHTML?
> >> >> > (Being
> >> >> > portable.)
> >> >> >
> >> >> > Is it possible to save a HTML document as a single file and then
> >> >> > view
> >> >> > that
> >> >> > file on another machine that does not have access to the original
> >> >> > content?
> >> >> >
> >> >> > Thanks!
> >> >> >
> >>
> >>
> >>
>
>
>