Get Binary content using SOAP Adapter
We are trying to use the UCM GET_FILE service to get the binary content of a file which we have to pass to another rest api for creating attachment in Document of Records using the below endpoint
Endpoint :- /hcmRestApi/resources/11.13.18.05/documentRecords/{DocumentsOfRecordId}/child/attachments
Please find the details of the api here:-
We need to pass it to the "FileContent" parameter in the api.
We have enabled "Accept attachments in Response" in the SOAP adapter for GET_FILE service. The problem is even after we decode the filecontent received from GET_FILE service and encode while passing to the CreateAttachment api the file is not opening and seems corrupted.