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 :

157 questions
5
votes
2 answers

Display .mht file on android

How to display .mht(MHTML) file on android webview. I tried to open the .mht file on default android browser but that didn't open but i am able to open same on opera mobile browser. So i tried with MHTUnpack java library. I didn't succeed in…
bheema
  • 313
  • 1
  • 5
  • 9
4
votes
1 answer

extract text from mht

I have an mht file, I wish to get all the text of the mht. I tought about using regex, but I have other languages in the mht except english, so the text itself contains stuff like A7=A98=D6... select all the text of a file viewed in your browser,…
Joker
4
votes
1 answer

Convert .mht files to pdf files using java

Is it possible to convert MHTML(.mht) files to pdf with proper css rendering. Tried using pd4ml but the extenal css and links refered in .mht file fails to get loaded in the pdf genrated.
Rita
  • 41
  • 2
4
votes
0 answers

How to render a .mht file inside an iframe

I want to take a snapshot of a page using headless chrome which will return a file to me, so I am creating an mht file as it will contain more information about the web page. So, now I want to render this snapshot inside an iframe but I am unable to…
IamSaquib
  • 344
  • 2
  • 11
4
votes
1 answer

single file webpage

I'm trying to find a cross-browser capability for saving and loading entire webpages as single files. MHTML (.mht) is an example of such a file type, but it doesn't work cross-browser. Any suggestions?
Nate Glenn
  • 5,926
  • 6
  • 38
  • 89
4
votes
1 answer

How to embedded all resources(css,js,images) into one single html file?

So my question is kinda a clone of this one except the answer proposed use .net technology and I'm working on linux. Here is a summary : I'm working with html5 based slide for presentation. These slides are created like every website with…
Ghetolay
  • 2,702
  • 2
  • 27
  • 29
4
votes
1 answer

Create *. Mht-file (Web Archive)

Use the following representation of the function to generate a Web archive from a local html file function TLessonConstructor2.CreateMHT( const FileName : string):boolean ; var oMSG:IMessage; oConfig: IConfiguration; sFileName: string; …
Fatum
  • 41
  • 3
3
votes
1 answer

Is there a master list somewhere of the tags and their meanings for mhtml files?

I am trying to read and extract data from xls files that are really Single File Web Pages see below This document is a Single File Web Page, also known as a Web Archive file. I am trying to figure out the meaning of all of the tags so I can make…
PyNEwbie
  • 4,686
  • 3
  • 32
  • 81
3
votes
1 answer

What are the security/privacy concerns with MHTML (.mht) files?

My customer is currently using MHT files for storing offline representations of browsed web pages. The files are saved and later viewed in Internet Explorer. When viewing the files we would like to be sure there is absolutely no network activity to…
Udi
  • 24,758
  • 8
  • 84
  • 116
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 Conroller returning file public ActionResult LoadInstrucion(string…
3
votes
3 answers

How to load mht from stream/string into a WebBrowser control?

The WebBrowser control loads properly any mht file if I use the Navigate method, but when I use the DocumentText or DocumentStream properties, the source of the mht file is displayed as if I opened the file in notepad. If I write the stream to a…
Sameh Deabes
  • 2,390
  • 20
  • 30
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…
ajmena
  • 275
  • 2
  • 16
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
  • 14,410
  • 2
  • 84
  • 85
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
  • 592
  • 5
  • 28
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
  • 25,561
  • 25
  • 109
  • 173
1
2
3
10 11