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.InvokeMemb er, but...
One property whose value I retrieve through :
TImagingObject. InvokeMember("J PGData", BindingFlags.Ge tProperty, null,
certificateImag e, null);
returns an Object.
Now how can I obtain a byte[] out of this returned Object to pass it to
Response.Write? !
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.
Sincerely,
A. Gharbeia
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.InvokeMemb er, but...
One property whose value I retrieve through :
TImagingObject. InvokeMember("J PGData", BindingFlags.Ge tProperty, null,
certificateImag e, null);
returns an Object.
Now how can I obtain a byte[] out of this returned Object to pass it to
Response.Write? !
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.
Sincerely,
A. Gharbeia
Comment