Blob/InStream as Automation function parameter.

DuikmeesterDuikmeester Member Posts: 304
RecContact.GET('CD02409');
RecContact.CALCFIELDS(Picture);
RecContact.Picture.CREATEINSTREAM(InStream);

CREATE(MyAuto,FALSE,TRUE);
MyAuto.Connect('http://server','user','pass');
MyAuto.CreateFileByStream(
	InStream,RecContact."No.");
CLEAR(MyAuto);

Can somebody help me, possibly with a working sample, where an function inside an Automation object accepts InStreams. According to the C/AL documentation you need to declare the parameter as IStream interface. But whatever I try it either fails entirely or with the message:
---------------------------
Microsoft Dynamics NAV Classic
---------------------------
This message is for C/AL programmers:

This data type is not supported by C/SIDE. You can access data from
any of the following data types:
VT_VOID, VT_I2, VT_I4, VT_R4, VT_R8, VT_CY, VT_DATE, VT_BSTR and VT_BOOL

---------------------------
OK   
---------------------------

This is for Classic client. For the RTC client it works like a charm.

Comments

Sign In or Register to comment.