Http://msdn.microsoft.com/en-us/library/ms775147.aspx
MIME type detection in Internet Explorer
In Microsoft Internet Explorer 4.0 and later, MIME type determination occurs in URL monikers through the findmimefromdata method. determining the
// Specify a stream that cannot be read by the client and must be downloaded.Response. contenttype = "application/X-msdownload ";
Mime
The MIME type is the type used by an application to open a file with a certain extension. When a file with the
1,Mime-util:The tool can detect MIME types by detecting file extensions, or by detecting magic header two technical ways. Reliable and lightweight, relying only on slf4j a package . It hasn't been updated in 2010 years.POM eu.medsea.mimeutil
Reprint Address: http://www.cuplayer.com/player/Help/2011/0625/83.htmlMaybe you're wondering why I uploaded an flv or MP4 file to the server and entered the correct address through the HTTP protocol to access the always "can't find this page" 404
1, Mime-util:
The tool can detect the MIME type by detecting the file name extension or detecting the magic header two technical methods.
More reliable and lightweight, relying only on slf4j a package. It hasn't been updated in 2010 years.
POM
Maybe you're wondering why I uploaded an flv or MP4 file to the server and entered the correct address through the HTTP protocol to access the always "can't find this page" 404 error? This indicates that the MP4 format file is not recognized by the
[1] common MIME types (general type): hypertext markup language text. HTML text/htmlxml document. XML text/xmlxhtml document. XHTML application/XHTML + XML plain text. TXT text/plainrtf text. RTF application/rtfpdf document. PDF
This article was reproduced from: http://hotsunshine.iteye.com/blog/857485Using Javax.activation.MimetypesFileTypeMapNeed to introduce Activation.jar this jar package, he can get http://java.sun.com/products/javabeans/glasgow/jaf.html from this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.