1. 程式人生 > >response.setContentType()的String參數及對應類型

response.setContentType()的String參數及對應類型

jpeg ext 參數 ont span txt back string 類型

response.setContentType("image/bmp");         BMP
response.setContentType("image/gif");           GIF
response.setContentType("image/jpeg");          JPEG
response.setContentType("image/tiff");           TIFF
response.setContentType("image/x-dcx");         DCX
response.setContentType("image/x-pcx");        PCX
response.setContentType("text/html");          HTML
response.setContentType("text/plain");           TXT
response.setContentType("text/xml");          XML
response.setContentType("image/bmp");         BMP
response.setContentType("application/afp");       AFP
response.setContentType("application/pdf");        PDF
response.setContentType("application/rtf");        RTF
response.setContentType("application/msword");      MSWORD
response.setContentType("application/vnd.ms-excel");   EXCEL

response.setContentType()的String參數及對應類型