Response.ContentType possible values

简介:

Known MIME Types

FindMimeFromData tests for the following MIME types:

MIME Type Description
text/plain Plain text. Default if data is primarily text and no other type detected.
text/html HTML. Default if common tags detected and server does not supply image/* type.
text/xml XML data. Default if data specifies <?xml with an unrecognized DTD.
text/richtext Rich Text Format (RTF).
text/scriptlet Microsoft Windows script component.
audio/x-aiff Audio Interchange File, Macintosh.
audio/basic Audio file, UNIX.
audio/mid Internet Explorer 7 and later. MIDI sequence.
audio/wav Pulse Code Modulation (PCM) Wave audio, Windows.
image/gif Graphics Interchange Format (GIF).
image/jpeg JPEG image.
image/pjpeg Default type for JPEG images.
image/png Internet Explorer 7 and later. Portable Network Graphics (PNG).
image/x-png Internet Explorer 7 and later. Default type for PNG images.
image/tiff Tagged Image File Format (TIFF) image.
image/bmp Bitmap (BMP) image.
image/x-xbitmap Removed from Internet Explorer 8.
image/x-jg AOL Johnson-Grace compressed file.
image/x-emf Enhanced Metafile (EMF).
image/x-wmf Windows Metafile Format (WMF).
video/avi Audio-Video Interleaved (AVI) file.
video/mpeg MPEG stream file.
application/octet-stream Binary file. Default if data is primarily binary.
application/postscript PostScript (.ai, .eps, or .ps) file.
application/base64 Base64-encoded bytes.
application/macbinhex40 BinHex for Macintosh.
application/pdf Portable Document Format (PDF).
application/xml XML data. Must be server-supplied. See also "text/xml" type.
application/atom+xml Internet Explorer 7 and later. Atom Syndication Format feed.
application/rss+xml Internet Explorer 7 and later. Really Simple Syndication (RSS) feed.
application/x-compressed UNIX tar file, Gzipped.
application/x-zip-compressed Compressed archive file.
application/x-gzip-compressed Gzip compressed archive file.
application/java Java applet.
application/x-msdownload Executable (.exe or .dll) file.

 

from:http://msdn2.microsoft.com/en-us/library/ms775147.aspx 

欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 330987132 | Go:217696290 | Python:336880185 | 做人要厚道,转载请注明出处!http://www.cnblogs.com/sunshine-anycall/archive/2010/01/11/1643780.html
相关文章
|
3月前
|
JSON Java 数据格式
Could not extract response: no suitable HttpMessageConverter found for ..content type [text/html...]
Could not extract response: no suitable HttpMessageConverter found for ..content type [text/html...]
|
4月前
|
JSON 前端开发 JavaScript
Request Headers - ContentType
Request Headers - ContentType
23 0
|
10月前
|
存储
Request和Response详解
Request和Response详解
|
11月前
|
Java 应用服务中间件 Apache
|
11月前
|
存储 缓存 应用服务中间件
jmeter获得Response Headers,Response Body里的值
jmeter获得Response Headers,Response Body里的值
169 0
jmeter获得Response Headers,Response Body里的值
|
XML Java 应用服务中间件
Serlect&Response
Servlet快速入门 1. 创建web项目,导入Servlet依赖坐标
|
移动开发 前端开发 JavaScript
通过Filter,对request 和 response 进行处理
通过Filter,对request 和 response 进行处理,统一加解密,Xss过滤,HttpServletRequestWrapper,HttpServletResponseWrapper
2114 0
|
Web App开发 XML 前端开发
response的contentType的类型值Response.ContentType
MIME类型的含义   MIME类型就是设定某种扩展名的文件用一种应用程序来打开的方式类型,当该扩展名文件被访问的时候,浏览器会自动使用指定应用程序来打开。多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式。
1861 0