Question
Tech Mahindra Ltd
IN
Last activity: 31 May 2017 4:27 EDT
How to download a file( binary stream) received from external system REST Service response in Pega application
We have a requirement to search and download a document/file from an external system which exposed a REST API.
In pega(v7.1.7), we have created a CONNECT-REST to call this REST API and tried to access document from external system. We are able to search the documents Metadata( which is in JSON format) by mapping response to JSON.
But we are not able to download the file when tried the appropriate download function of externa API. However if we try the external API download URL in broswer it prompt the file download option.
We need the same(download prompt) from Pega screen, while user take download action and pega calls external download API via CONNECT-REST.
Does any body implement this with CONNECT-REST? Please suggest any way to solve this problem.
Thanks & Regards,
Yuvraj Joshi