Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ADO STREAM error

Reply
Thread Tools

ADO STREAM error

 
 
Pedro
Guest
Posts: n/a
 
      02-10-2004
I'm trying to execute the piece of code below:

Const adTypeBinary = 1
Dim BinaryStream
Set BinaryStream = CreateObject("ADODB.Stream")

'Specify stream type - we want To get binary data.
BinaryStream.Type = adTypeBinary

'Open the stream
BinaryStream.Open
URL=http://server/docs/mydocs/myfile.jpg

As soon as the Open method is executed I get the follwoing
message:
Microsoft OLE DB Service Components error '80040e19'

Object or data matching the name, range, or selection
criteria was not found within the scope of this operation.

The code above works well when I run it locally against my
local instance of IIS5.0. When I load it into my ISP
server, I get the error message above.

Thanks for the help.
Pedro.

 
Reply With Quote
 
 
 
 
Rafael Chemtob
Guest
Posts: n/a
 
      02-10-2004
put the URL in a string variable and pass it to the open method.

rafael

"Pedro" <> wrote in message
news:e06101c3f00e$4f5ed810$...
> I'm trying to execute the piece of code below:
>
> Const adTypeBinary = 1
> Dim BinaryStream
> Set BinaryStream = CreateObject("ADODB.Stream")
>
> 'Specify stream type - we want To get binary data.
> BinaryStream.Type = adTypeBinary
>
> 'Open the stream
> BinaryStream.Open
> URL=http://server/docs/mydocs/myfile.jpg
>
> As soon as the Open method is executed I get the follwoing
> message:
> Microsoft OLE DB Service Components error '80040e19'
>
> Object or data matching the name, range, or selection
> criteria was not found within the scope of this operation.
>
> The code above works well when I run it locally against my
> local instance of IIS5.0. When I load it into my ISP
> server, I get the error message above.
>
> Thanks for the help.
> Pedro.
>



 
Reply With Quote
 
 
 
 
Pedro
Guest
Posts: n/a
 
      02-11-2004
I tried saving URL to a variable and passing it to the
Open method. It didn't work. I got the same error
message...

>-----Original Message-----
>put the URL in a string variable and pass it to the open

method.
>
>rafael
>
>"Pedro" <> wrote in

message
>news:e06101c3f00e$4f5ed810$...
>> I'm trying to execute the piece of code below:
>>
>> Const adTypeBinary = 1
>> Dim BinaryStream
>> Set BinaryStream = CreateObject("ADODB.Stream")
>>
>> 'Specify stream type - we want To get binary data.
>> BinaryStream.Type = adTypeBinary
>>
>> 'Open the stream
>> BinaryStream.Open
>> URL=http://server/docs/mydocs/myfile.jpg
>>
>> As soon as the Open method is executed I get the

follwoing
>> message:
>> Microsoft OLE DB Service Components error '80040e19'
>>
>> Object or data matching the name, range, or selection
>> criteria was not found within the scope of this

operation.
>>
>> The code above works well when I run it locally against

my
>> local instance of IIS5.0. When I load it into my ISP
>> server, I get the error message above.
>>
>> Thanks for the help.
>> Pedro.
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Translating Oracle Package Call from ADO to ADO.Net dmiratsky@yahoo.com ASP .Net 0 02-14-2005 10:39 PM
Transfer ADO Code to ADO.NET ronaldlee ASP .Net 1 12-17-2004 04:08 PM
Accessing an ADO Recordset or Record from ADO.NET nita ASP .Net 1 11-20-2004 07:06 AM
ADO Stream error. Please HELP Pedro ASP General 2 02-12-2004 01:37 PM
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. Navin ASP General 1 09-09-2003 07:16 AM



Advertisments