PBM: ADOStream.Write( Request.BinaryRead() ) causes an error

V

Vince C.

Hi.

I'm trying to put upload results from an HTML form into an ADO stream. I thought
I could code the following (JavaScript):

var s = Server.CreateObject("ADODB.Stream");
s.Type = adTypeBinary;
s.Open();
s.Write( Request.BinaryRead() )

but it doesn't work and I get an error "Arguments of wrong type". IIS doc says
BinaryRead() returns an array of bytes. It also says that ADOStream.Write takes
an argument of type array of bytes... So what are the types that are so wrong
that I get such an error?

Is there a way to put directly the received array of bytes into an ADO stream?

Thanks for any hint/suggestion,
Vince C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top