I am trying to pass an OutStream to a VB.NET object.
The Outstream gets created fine on Navision.
The call to the VB.NET object also goes fine, but as I step through the VB.NET code the parameter "var" has a type of System.__ComObject.
Does anyone know the underlying Type of this Object?
I have tried casting to byte[], Stream etc, but have had no luck. I need to extract the image from the parameter "var" in VB.NET.
Has anyone had any luck doing this? If so, how do I do it in .NET??
Navision Code is:
recEmployee.Picture.CREATEOUTSTREAM(outS);
CREATE(vbnetObject);
vbnetObject.SetStream(outS);
VB.NET Code is (Interface definition left out for clarity):
Public Function SetStream(ByVal val As Object) As Boolean
SetStream = False
End Function
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n