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.
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.