I have a .mht file through an interface which I want to read through using Cold Fusion Code.
I have been trying to change it into excel to read it but it is not solving the purpose. I have been searching this over but haven’t got any thing concrete for now.
First it is not Cold Fusion unless you are using Cold Fusion 4 or lower, secondly as it is only an extension then it will be up to the browser to read it and do what it needs it to do.
As this format is an archive format, my recommendation would be to convert them on the fly to maybe PDF and server them this way.
But a Google search on how to convert an mht file to a pdf returns great articles.
MHTML isn’t XML, it’s a multi-part MIME file much like the raw source of an E-mail. It has header, then content type boundaries. That’s how it stores an entire web page includes images and such in a single file. There are Java libraries for parsing those files like the one I linked to that will unpack the HTML and images for you.