常用Java中response.setContentType参数

image/bmp BMP 

image/png PNG

image/gif GIF 
image/jpeg JPEG 
image/tiff TIFF 
image/x-dcx DCX 
image/x-pcx PCX 
text/html HTML 
text/plain TXT 
text/xml XML 
application/afp AFP 
application/pdf PDF 
application/rtf RTF 
application/msword MSWORD 
application/vnd.ms-excel MSEXCEL 
application/vnd.ms-powerpoint MSPOWERPOINT 
application/wordperfect5.1 WORDPERFECT 
application/vnd.lotus-wordpro WORDPRO 
application/vnd.visio VISIO 
application/vnd.framemaker FRAMEMAKER 
application/vnd.lotus-1-2-3 LOTUS123 
application/octet-stream 信息流

posted @ 2017-01-20 18:00  jeremy1888  阅读(1890)  评论(0编辑  收藏  举报