For a list of MIME types associated by default please refer to Appendix C. If the file extension is already registered, MIME type is replaced. The method is very important if you're planning to use any non-default file types.
For example, if you have to include JPEG2000 files (".JP2" extension) in your web archive MHT, you should call AddMimeType("jp2", "image/jpeg") method prior to calling MakeArchive methods.
You can find another example of this method in the WebArchiveX distribution ZIP under "Samples \ JavaScript \ XML".
You can also use this method if you need to override any existing association. For example: AddMimeType("js", "text/javascript") will replace the default association of files with extension ".js" to MIME type "application/x-javascript".
Sample 5 shows how to use AddMimeType in
order to incorporate XML and XSL files in web archive MHT files.
Sample 6 shows how to use AddMimeType
and AddResourceTag in order to incorporate
PDF and DOC files in web archive MHT files.
-
WebArchiveX API - WebArchiveX Website - C Systems Website -