Questions tagged [mhtml]

MHTML, MIME-HTML, is a webpage format that can combine different resources, such as text, images, flash, audio or much more in one file.

In MHTML, the combination of resources such as text, images, flash, etc. can be achieved on through the use of MIME multipart/related content type.

MHTML defines the naming of objects that are normally referred to by URLs and the means of aggregating resources that go together. Two MIME headers, Content-Location and Content-Base, are defined in order to resolve references to other content stored locally in related body parts. Content-Base gives an absolute URL base, or "starting point",for relative URLs that appear in other MIME headers and in HTML documents that do not contain any BASE HTML elements. Content-Location specifies the URL that corresponds to the content of the body part that contains this header.

MHTML is commonly used in emails.


Resources :

172 questions
3
votes
0 answers

Displaying mht file in iframe

I need to display mht file stored in zip archive in frame on the page Action in MVC Controller returning file public ActionResult…
3
votes
1 answer

Open a .mht/.mhtml file in the browser

I have a '.mht' file that I need to open in the browser like a View or something like that. In my controller I return a FilePathResult with the contentType. But when I type the URL the file is download as a file of unknown type. public ActionResult…
3
votes
1 answer

Chrome Content script injection in MHTML files

It seems the Chrome does not inject content script into local files that are of type MHTML. They might do this for security reason. They don't allow you to download files that have MHTML extension either. So that makes me suspicious. My content…
David Dehghan
  • 22,159
  • 10
  • 107
  • 95
3
votes
2 answers

Is it possible to package multiple HTML files in an MHTML file and navigate between them?

So I might be thinking of the wrong file format, but I remember as a kid opening files that looked like a Windows 98 help window: I thought it was an MHTML file, and it allowed me to navigate between the packaged pages. Am I thinking of the right…
NobleUplift
  • 5,631
  • 8
  • 45
  • 87
3
votes
1 answer

How can we use JQuery in mht files?

I generated some active reports in cognos. Then I got across with this Dynamic reporting in Cognos using JQuery: http://www.ibm.com/developerworks/library/ba-pp-reporting-advanced-report-design-page647/ I generated some interactive reports with…
MChirukuri
  • 610
  • 6
  • 29
3
votes
2 answers

How can I serve an mht file with netcat?

Due to a bug in chrome (https://code.google.com/p/chromium/issues/detail?id=439832) I want to serve a file through netcat instead of loading it directly. But, when I try to simply do nc -l -p 8000 < /tmp/file.mhtml and load http://localhost:8000 in…
IttayD
  • 28,271
  • 28
  • 124
  • 178
3
votes
2 answers

Enabling scripts for .mht-files?

Everytime I load a MHT in Google Chrome, I get following error: Blocked script execution in 'file:///C:/...' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. I know that allow-scripts is a value for the…
Cubi73
  • 1,891
  • 3
  • 31
  • 52
3
votes
4 answers

an HTML file is NOT an Excel file, right?

we use an application that has an "export to excel" feature that doesn't work on PC's that done have outlook express installed. i know, you're thinking "WTF does outlook express have to do with excel files?" i asked the same thing, and here's what i…
longneck
  • 11,938
  • 2
  • 36
  • 44
3
votes
3 answers

Why MHTML not browsed by chrome/Firefox but with IE?

Here does Internet Explorer beat Chrome & Firefox if am not wrong? I Save a webpage in mobile using OperaMini browser and it stored that as .mhtml file. After I tried to open that file on my desktop by Chrome and Firefox but when i double-clicked on…
Prashant Shilimkar
  • 8,402
  • 13
  • 54
  • 89
3
votes
0 answers

Create the mhtml file using java

Can any one please suggest how to create an mhtml file using Java? I have already used the jtidy API (sourceforge), but I am unable to open the page in a browser. I am getting a blank screen if I open the mhtml file in IE. Note : File (.mhtml)…
Vasanth
  • 474
  • 2
  • 9
  • 31
3
votes
1 answer

ActiveX component to display in-memory MHTML in Windows

I'm creating a small Windows application (C++) which create some windows an such (CreateWindowEx and the like). And in one window I want to add a control that shows MHTML loaded from memory, i.e. the whole MHTML content is in a string, not in a…
GetFree
  • 40,278
  • 18
  • 77
  • 104
2
votes
1 answer

C# extract HTML from MHT file

I have a C# module that extracts information from a HTML file. But my input is a MHT file. How do I go about extracting just the html portion of the MHT file?
Dan Bailiff
  • 1,513
  • 5
  • 23
  • 38
2
votes
5 answers

sending inline MHTML

I was wondering if it is possible through the .NET 2.0 MailMessage object to send an inline MHTML file that is created on the fly. By inline I mean: It should be sent in a way that the user can see it, once he opens the email, without having to…
Ali
  • 595
  • 4
  • 13
  • 42
2
votes
0 answers

Fill input in .mhtml file opened in Browser

I want to run e2e tests on mhtml files, i.e., fill out a form. Viewing and extracting data works really well on the mhtml file, but I cannot fill out any input fields (neither manually nor via puppeteer). You can try it out with this mhtml file I…
Kim Kern
  • 54,283
  • 17
  • 197
  • 195
2
votes
4 answers

Images in one file under IE6 WITHOUT php

I need to create a page with all images and CSS in it, so it would be only one file. I know that there is something like MHT (IE web archive), BUT there is problem. It works only in IE and Opera, not in FF. And i need my page to be working in all…
Pirozek
  • 1,250
  • 4
  • 16
  • 25
1 2
3
11 12