Sending attachment data via REST service
Hello - I am trying to send a PDF in a REST service response to an external system but unable to do so. I get the error message
"Invalid parameter passed for method: SetValue of Document Primitive: file_data. (2,1016)"
FYI, I have created a document based message with file_data as one of the fields as shown in the screenshot below
the assignment is done via this line of code
&ComResp_Level1_Item.GetPropertyByName("file_data").Value = &Doc_Data;
where &Doc_Data is populated from FILE_DATA field via a sql object as shown below
SELECT ATTACHSYSFILENAME ,FILE_SEQ ,FILE_DATA FROM %Table(:1) WHERE ATTACHSYSFILENAME = :2