Petar Popara
2005-08-25 08:14:06 UTC
I have to send from JScript to an COM object one binary value as BSTR. Is it
possible?
Example:
var b = "AAAAAAAAAAAAAAAAAAAA"; // length is allways 20
b[0] = 25;
b[1] = 30;
b[2] = 2;
b[3] = 65;
...
b[19] = 44;
myCOM.setBinaryValue(b);
Would above code work?
setBinaryValue() was already defined as BSTR inside COM object and changeing
it into SAFEARRAY would require new deployement which I would like to avoid
if possible.
possible?
Example:
var b = "AAAAAAAAAAAAAAAAAAAA"; // length is allways 20
b[0] = 25;
b[1] = 30;
b[2] = 2;
b[3] = 65;
...
b[19] = 44;
myCOM.setBinaryValue(b);
Would above code work?
setBinaryValue() was already defined as BSTR inside COM object and changeing
it into SAFEARRAY would require new deployement which I would like to avoid
if possible.