my requirement is to pick up a file from an FTP server and attach it to a supplier invoice. My problem with that api is how to handle my binary payload within SAP CPI and pass it to the content parameter (API's Body). I've managed to make it work from Postman and my pdf document gets attached correctly :
When trying through CPI, i'm not sure how to handle binary Data (PDF content as Payload), should we encode it first ? I've searched the Forums/Blogs and SAP documentaion without any Luck so far.
i'm getting the following error: