我怎么IE6采取的ContentType当真? [英] How do I get IE6 to take ContentType seriously?

查看:142
本文介绍了我怎么IE6采取的ContentType当真?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我们使用到TIFF图像加载到来自一个ASP.Net(3.5)的Web表单的客户端浏览器第三方ActiveX控件的战斗。 ActiveX控件注册自身正确(据我可以告诉)作为MIME处理的TIFF图像和正常工作,每次一个文件双击本地。不过,IE6和ActiveX控件行为不同取决于我已经能够到目前为止识别少数情况下。

I'm fighting with a third-party ActiveX control that we are using to load TIFF images into the client browser from an ASP.Net(3.5) web form. The ActiveX control registers itself correctly (as far as I can tell) as the MIME handler for TIFF images and works correctly every time a file is double-clicked locally. However, IE6 and the ActiveX control behave differently depending on a few situations that I've been able to identify so far.

修改
ActiveX控件实际上不是在网页中都(无标签)。客户端将已安装的ActiveX控制,并通过流传输到客户端的原始图像,在浏览器中的ActiveX控制产卵自动基于MIME的处理。
END修改

有关背景的目的,我们在图像流使用Response.BinaryWrite(缓冲),其中缓冲区是包含二进制图像的字节数组浏览器。我已经使用Response.TransmitFile()和一对夫妇在Web表单的其他方法,以及尝试。该网站的服务器都运行Server 2003的SP2 SE,网站IIS6下运行。

For background purposes, we are streaming the image to the browser using Response.BinaryWrite(buffer) where buffer is a byte array containing the binary image. I've tried using Response.TransmitFile() and a couple of other methods in the web form as well. The web servers are running Server 2003 SE SP2, website is running under IIS6.


  • 如果我流之前设置Response.ContentType =图像/ TIFF,ActiveX控件未能在IE6中加载。

  • 如果我指定图像的名称,或为此事,名为.tif随时随地查询字符串,ActiveX控件成功加载在IE6。

  • 如果我使用Firefox,一切完美的作品(插入苦笑IE6很烂的陈词滥调这里)。

我已经做了研究整体转换上IE6用于确定MIME处理注册表设置,甚至尝试禁用的 MIME探查 /的 MIME处理,都无济于事。我不介意在查询字符串指定名为.tif,但即使这并不Citrix客户端,这牢骚在成功加载控制注册表!看着我。

I've done a whole slew of research on the registry settings that IE6 uses to determine MIME handling, and have even tried disabling MIME sniffing/MIME handling on the client, all to no avail. I don't mind specifying ".tif" in the query string, but even this does not load the control successfully on a Citrix client, which hollers "Registry!" at me.

哦,另一件事;这是一个要求,即不提示用户,因此添加一个Content-Disposition头与ActiveX控件加载附件;文件名= yaddayaddayadda.tif的可能性也不大。

Oh, one other thing; it's a requirement that the ActiveX control load without prompting the user, so adding a Content-Disposition header with "attachment; filename=yaddayaddayadda.tif" is not a possibility.

有没有人遇到过这样的事以前?你是如何克服它,如果你没有?是否有一个全球性的修复,我可以推送到客户端桌面?有什么我需要在Web服务器上设置?我觉得我已经用尽了一切办法。

Has anyone encountered anything like this before? How did you overcome it, if you did? Is there a global fix I can push to the client desktops? Is there something I need to set on the web server? I feel like I've tried everything.

先谢谢了。

推荐答案

这是从你的问题不清楚究竟发生了什么事。是ASPX页面上的ActiveX控件或它作出的ASPX页面的请求?您是否使用一个ASPX服务二进制数据TIFF?

It's unclear from your question exactly what's going on. Is the ActiveX control on the ASPX page or does it make a request to the ASPX page? Are you using an ASPX to serve binary TIFF data?

这篇关于我怎么IE6采取的ContentType当真?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆