Click to See Complete Forum and Search --> : ADO stream error c004800a


mikec
09-28-2003, 07:35 PM
Hello,

I am encountering the error 'Could not complete the operation due to error c004800a' while trying to stream a text file from an IIS webserver to the Client. The code is VBScript executed on the client side. I know the code works because I am using it fine on a local test box. When I test the code on the live box I get this error.

I have had no luck in finding much information on this error. Any help would be great. Thanks.

This is the code:

<script language="VBScript">
' Set up an ADO Stream
Dim objStream
Set objStream = CreateObject("ADODB.Stream")
objStream.Type = 1 ' adTypeBinary

'open file on server

objStream.Open("URL=http://xxx.xxx.com/xxxxx/xxx/test.txt")

' Save to client

objStream.SaveToFile "C:\test2.txt", 2 ' adSaveCreateOverWrite

objStream.Close
Set objStream = Nothing
</script>

jetta74
05-14-2008, 12:38 PM
Hello mikec,

I am having the same trouble. Did you find any solution to this problem? I would appreciate if you can post the solution or how did you solve the situation. Thanks in advance.

Regards
Jetta74