P
Philip Daniels
I am doing some work with a client API via COM interop. I have
reached the situation where after this call to their API:
object someObj = con.Peek(1);
"someObj" contains some type of COM object (shows type as
System.__COMObject).
I have no idea what someObj is, but it is likely to be some sort of
wrapper around an image : con.Peek(1) is ultimately retrieving a
bitmap from an IMAGE column in SQL server. I really can't be sure
though. I've tried casting someObj to all the types they expose in
their library and it fails on each one. (It's MBS Dynamics AX in case
you're interested).
Is it possible to figure out what someObj is and get the image data
out? Something using interop or reflection perhaps.
Any help much appreciated at this stage....
reached the situation where after this call to their API:
object someObj = con.Peek(1);
"someObj" contains some type of COM object (shows type as
System.__COMObject).
I have no idea what someObj is, but it is likely to be some sort of
wrapper around an image : con.Peek(1) is ultimately retrieving a
bitmap from an IMAGE column in SQL server. I really can't be sure
though. I've tried casting someObj to all the types they expose in
their library and it fails on each one. (It's MBS Dynamics AX in case
you're interested).
Is it possible to figure out what someObj is and get the image data
out? Something using interop or reflection perhaps.
Any help much appreciated at this stage....