title: Setting Response.ContentType="image/tiff" in asp.net 1.1 and IE7 doesn't display tif files
body: <p>I have an Asp.Net 1.1 application that uses the following code to write out an image file to a pop up web page.</p>
  
  <pre><code>    Response.ContentType="image/tiff"   'Only for Tif files
      Dim objStream As Object
      objStream = Server.CreateObject("ADODB.Stream")
      objStream.open()
      objStream.type = 1
      objStream.loadfromfile(localfile)
      Response.BinaryWrite(objStream.read)
  </code></pre>
  
  <p>I'm testing this out with TIF files. The files are being displayed correctly in IE6 and Safari but in IE7 they are not displaying and nothing seems to be returning to the web page. Files with jpg, gif extensions are being displayed properly. What might be the problem here?</p>