This article has no preface ...... 1. ContentProvider database sharing-Overview 2. ContentProvider database sharing-instance explanation 3. ContentProvider database sharing-MIME type and getType () 4. ContentProvider database sharing-read and write
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
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
This article is still transferred from the old blog of juyou. The MIME type commonly used in the article is also reposted because the old blog is no longer updated and readers need this article.
The MIME type is the type used by an application to
Maybe you may wonder why the 404 error "this page cannot be found" always occurs when I upload FLV or MP4 files to the server and enter the correct address to access the file through HTTP? This indicates that MP4 files cannot be identified by the
Php accurately obtains the object MIME type
This example describes how php can accurately obtain the object MIME type. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12
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
Mime_content_type: the MIME type of the specified object is returned,Usage: The code is as follows:Copy code Echo mime_content_type ('php.gif '). "n ";Echo mime_content_type ('test. Php '); Output:Image/gifText/plainHowever, this function will
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.