在报表服务器上为Excel设置MIME类型为“application / octet-stream” [英] Setup MIME type to 'application/octet-stream' for Excel on Report Server
问题描述
您好,
我希望在报表服务器配置文件上将EXCEL文件呈现的MIME类型设置为"application / octet-stream"。我知道如何设置IIS,但我需要专门为Report Server配置文件。下面是IIS的解决方案,但我不确定是否支持REportServer
?
I am looking to setup MIME type for EXCEL file rendering to 'application/octet-stream' on report server Config file. I know how to setup for IIS but I need specifically for Report Server config file. Below is the solution for IIS but I am not sure does it support to REportServer??
< configuration> < system.webServer> < staticContent> < mimeMap fileExtension =" .xlsx" mime类型= QUOT;应用/八位字节流"
/> < / staticContent> < /system.webServer> < / configuration>
Jatinkumar Shah
Jatinkumar Shah
推荐答案
嗨Jatinkumar Shah
Hi Jatinkumar Shah
根据你的描述,抱歉不熟悉mime类型。
According to your description , sorry for not familiar with the mime type .
你想用什么做什么? mime类型"application / octet-stream",如果要在报表服务器中下载excel文件。
What do you want to do with the mime type "application/octet-stream" , if you want to download the excel file in report server .
原始报表服务器门户网站中的内容(网址如下:
http: //< instance_name> / reports ),当您单击Web门户中的excel文件时,浏览器将自动下载该文件。它已经响应类型为"application / octet-stream"
Seems in the original report server web portal (url like : http://<instance_name>/reports), when you click the excel file in the web portal , the browser would download the file automatically. it was already response the type as "application/octet-stream"
请参阅:
因此您无需更改web.config文件中的类型。
So you do not need to change the type in the web.config file.
希望它能为您提供帮助。
Hope it can help you.
最诚挚的问候,
Eric Liu
这篇关于在报表服务器上为Excel设置MIME类型为“application / octet-stream”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!