views:

105

answers:

1

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.

EDIT The ActiveX control is not actually in the web page at all (no tag). The client will have the ActiveX control installed, and by streaming the raw image to the client, the ActiveX control spawns in the browser automatically based on MIME handling. END EDIT

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.

  • If I set Response.ContentType = "image/tiff" before streaming, the ActiveX control fails to load in IE6.
  • If I specify the name of the image, or for that matter, ".tif" anywhere in the query string, the ActiveX control loads successfully in IE6.
  • If I use FireFox, everything works perfectly (insert wry "IE6 sucks" cliché here).

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.

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.

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.

Thanks in advance.

A: 

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?

batwad
Added clarification.
AJ
So the control is in a different thick client exe? A makes a request to an ASPX that generates a TIFF, is that right? Sorry, but it's still tricky to envisage exactly what you're doing.
batwad