PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Sending attachment data via REST service

edited Oct 6, 2022 10:16PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 2 commentsAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center