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

时间: 2024-08-09 15:03:41

Response.ContentType possible values的相关文章

Response.ContentType 控制输出文件类型(讨论下载文件问题)

response|控制|问题|下载 服务器送给客户端的数据包类型可以是text/html文本,也可以是gif/jpeg图形文件,所以每次传输前,我们都必须告知客户端将要传输的文件类型,一般默认情况下为"Text/Html"类型.<% Response.ContentType = "text/HTML" %><% Response.ContentType = "image/GIF" %><% Response.Cont

Response.ContentType 详细列表

  不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式. 代码如:   <% response.ContentType ="text/html" %> <!--#i nclude virtual="/ContentType.html" --> 显示的为网页   而 <% response.ContentType ="text/plain" %&g

asp.net下Response.ContentType类型汇总_实用技巧

在ASP.NET中使用Response.ContentType="类型名";来确定输出格式 'ez' => 'application/andrew-inset',  'hqx' => 'application/mac-binhex40',  'cpt' => 'application/mac-compactpro',  'doc' => 'application/msword',  'bin' => 'application/octet-stream', 

用asp实现网页调用doc附Response.ContentType 详细列表_应用技巧

微软有篇文章:http://support.microsoft.com/kb/193998/zh-cn,用doc读取和显示二进制数据,<怎样读取二进制文件>,没测试,懒得编译dll    asp程序:    <%            response.buffer=true            response.contenttype="application/x-msexcel"            dim   vntstream            set

用asp实现网页调用doc附Response.ContentType 详细列表

微软有篇文章:http://support.microsoft.com/kb/193998/zh-cn,用doc读取和显示二进制数据,<怎样读取二进制文件>,没测试,懒得编译dll    asp程序:    <%            response.buffer=true            response.contenttype="application/x-msexcel"            dim   vntstream            set

Android http Request / Response ContentType

客户端在进行http请求服务器的时候,需要告诉服务器请求的类型,服务器在返回给客户端的数据的时候,也需要告诉客户端返回数据的类型. 这个类型就是  ContentType  ,不同的ContentType 会影响客户端/服务器所看到的效果.contentType: 告诉服务器,我要发什么类型的数据    1.默认的ContentType为  text/html 也就是网页格式.      text/plain :纯文本格式           text/xml :  XML格式     imag

ASP中巧用Response属性 -- contenttype

response 我在用ASP为某单位制作网页时遇到这样一个问题,单位以前的MIS系统中将一些Word文件以字节流的形式保存在数据库中,现在用户要求我用ASP将这些Word文件数据从数据库中取出并在网页中显示出来.开始我自然地想到在服务器上创建临时文件.然后在网页中增加一个指向这个临时文件的链接,但这个方法将大大增加服务器的负担不说,而且在服务上如何保证特定客户端所使用的临时文件不被其它客户端使用的文件覆盖,如何在文件传送给用户后将文件删除,这些问题在实际都难很好解决.那么有没有更好的办法呢?

ASP.NET Response的ContentType类型对照表

在asp.net代码中编写方式如下: Response.AddHeader("content-type", "application/octet-stream"); 或者 Response.ContentType = "application/octet-stream"; 类型列表如下: ".*"="application/octet-stream" ".001"="appli

asp.net 通过response写的下载控件怎么实现下载

问题描述 我是通过这样Response.Write("<ahref='javascript:void(0);'onclick='javascript:saveAs("+table.Rows[i]["地址"]+")'>下载</a>");数据库每有一条数据就有一个对应的下载连接路径我存在在数据表的地址字段里实现效果如图在页面我写了一个js<scripttype="text/javascript>funct