Object to binary[] from COM in .NET using C#

A

A. Gharbeia

Greetings:
It turned out that using COM objects from .NET C# isn't straight forward at
all.
Now, I have successfully used reflection to instantiate the object, and
invoked the methods and properties through Type.InvokeMember, but...

One property whose value I retrieve through :

TImagingObject.InvokeMember("JPGData", BindingFlags.GetProperty, null,
certificateImage, null);

returns an Object.

The question is how can I obtain a byte[] out of this returned Object to
pass it to
Response.BinaryWrite?!
I can't cast into an array, of course, and I can't find the right methods to
access the binary data and instantiate an array with it.

Thank you.

A. Gharbeia
 

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

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top