Using Server.CreateObject("ADODB.Stream") in IE7

Posted by Daud on Stack Overflow See other posts from Stack Overflow or by Daud
Published on 2008-11-12T12:05:37Z Indexed on 2010/03/27 13:03 UTC
Read the original article Hit count: 507

Filed under:
|
|
|
|

I have a asp.net 1.1 application that uses the following code to write out a file in the response:

        Dim objStream As Object
        objStream = Server.CreateObject("ADODB.Stream")
        objStream.open()
        objStream.type = 1
        objStream.loadfromfile(localfile)
        Response.BinaryWrite(objStream.read)

This code is called by a pop up window that displays this file or gives a open/save dialog in Internet explorer. The problem is, that it seems to work fine in IE6 but in IE7 the pop up opens and then closes without displaying the file. Any one know whats wrong?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about .net-1.1