我有一个 Asp.Net 1.1 应用程序,它使用以下代码将图像文件写入弹出网页。
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)
我正在使用 TIF 文件对此进行测试。这些文件在 IE6 和 Safari 中正确显示,但在 IE7 中它们没有显示,并且似乎没有任何内容返回到网页。带有 jpg、gif 扩展名的文件可以正常显示。这里可能有什么问题?