小菜AS3之路

2012.2.17
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

MIME类型

Posted on 2012-03-28 19:33  枫雨  阅读(288)  评论(0编辑  收藏  举报

  常见的MIME类型(通用型):
  超文本标记语言文本 .html text/html
  xml文档 .xml text/xml
  XHTML文档 .xhtml application/xhtml+xml
  普通文本 .txt text/plain
  RTF文本 .rtf application/rtf
  PDF文档 .pdf application/pdf
  Microsoft Word文件 .word application/msword
  PNG图像 .png image/png
  GIF图形 .gif image/gif
  JPEG图形 .jpeg,.jpg image/jpeg
  au声音文件 .au audio/basic
  MIDI音乐文件 mid,.midi audio/midi,audio/x-midi
  RealAudio音乐文件 .ra, .ram audio/x-pn-realaudio
  MPEG文件 .mpg,.mpeg video/mpeg
  AVI文件 .avi video/x-msvideo
  GZIP文件 .gz application/x-gzip
  TAR文件 .tar application/x-tar
  任意的二进制数据 application/octet-streamQ


下面列出常用的文件对应的MIME类型:

Mime-Types(mime类型)              Dateiendung(扩展名)             Bedeutung
application/msexcel                   *.xls *.xla                 Microsoft Excel Dateien
application/mshelp                    *.hlp *.chm      Microsoft Windows Hilfe Dateien
application/mspowerpoint          *.ppt *.ppz *.pps *.pot         Microsoft Powerpoint Dateien
application/msword                   *.doc *.dot                  Microsoft Word Dateien
application/octet-stream            *.exe                         exe
application/pdf                         *.pdf                     Adobe PDF-Dateien
application/postscript                *.ai *.eps *.ps     Adobe Postscript-Dateien
application/rtf                          *.rtf       Microsoft RTF-Dateien
application/x-httpd-php             *.php *.phtml      PHP-Dateien
application/x-javascript              *.js                        serverseitige JavaScript-Dateien
application/x-shockwave-flash    *.swf *.cab             Flash Shockwave-Dateien
application/zip                         *.zip             ZIP-Archivdateien
audio/basic                             *.au *.snd             Sound-Dateien
audio/mpeg                            *.mp3             MPEG-Dateien
audio/x-midi                            *.mid *.midi             MIDI-Dateien
audio/x-mpeg                         *.mp2             MPEG-Dateien
audio/x-wav                           *.wav             Wav-Dateien
image/gif                               *.gif             GIF-Dateien
image/jpeg                            *.jpeg *.jpg *.jpe         JPEG-Dateien
image/x-windowdump             *.xwd             X-Windows Dump
text/css                                *.css             CSS Stylesheet-Dateien
text/html                              *.htm *.html *.shtml         -Dateien
text/javascript                       *.js             JavaScript-Dateien
text/plain                             *.txt             reine Textdateien
video/mpeg                          *.mpeg *.mpg *.mpe         MPEG-Dateien
video/vnd.rn-realvideo            *.rmvb              realplay-Dateien
video/quicktime                     *.qt *.mov             Quicktime-Dateien
video/vnd.vivo                       *viv *.vivo             Vivo-Dateien

flv application/octet-stream
application/x-shockwave-flash


WEB服务器是IIS
IIS--默认网站属性-->http 头-->MIME映射 -->文件类型 -->新类型
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wbmp image/vnd.wap.wbmp

如果你的电脑,WEB服务器是Apache
Apache安装目录下的conf/mime.types文件
增加:
text/vnd.wap.wml .wml
image/vnd.wap.wbmp .wbmp
application/vnd.wap.wmlc .wmlc
text/vnd.wap.wmls .wmls
application/vnd.wap.wmlsc .wmlsc

支持java下载:在iis中需要添加
.jad text/vnd.sun.j2me.app-descriptor
.jar application/java-archive
支持sis文件下载:在iis中需要添加
.sis application/vnd.symbian.install