Board index » delphi » IStream does not work over HTTP/Sockets

IStream does not work over HTTP/Sockets

Anyone know how to get streaming (via IStream) working over
HTTP and/or Sockets?

Works perfectly using COM/DCOM, but fails with the exception
EInterpreterError for the other transport methods. The error
message is 'Unsupported variant type: 400D'.

Does it use some other sideband communication?

 

Re:IStream does not work over HTTP/Sockets


This is a limitation of the marshaling code for sockets. I suppose you can
write/extend your own Interpreter/TDataBlockInterpreter and substitute it
into the default one used by TStreamedConnection.

Otherwise, I assume you want IStream because you want to push/pull some
binary data. If so, a variant consisting of a SAFEARRAY (VT_UI1) should do.
In Delphi: VarArrayCreate (..., varByte);

--
have fun
Binh Ly
www.techvanguards.com

"Michael J. Leaver" <Michael.Lea...@abis-systems.com> wrote in message
news:3b15b05f_1@dnews...

Quote
> Anyone know how to get streaming (via IStream) working over
> HTTP and/or Sockets?

> Works perfectly using COM/DCOM, but fails with the exception
> EInterpreterError for the other transport methods. The error
> message is 'Unsupported variant type: 400D'.

> Does it use some other sideband communication?

Other Threads