PDF Binary stream's REST response is corrupted
A REST Connector is used to receive a binary stream with a PDF document in the response. While converting the stream to PDF, a blank document is generated.
Steps to Reproduce
- Create a REST Connector.
- Configure the POST method to receive the binary stream of the PDF in the response and map it to a Text property.
- Use the out-of-the-box base64encode function to generate the base64 string.
- Generate a PDF from the generated string.
Incorrect headers were sent with the response.
Perform the following local-change:
Modify the headers to be sent as below:
Content-Type: application/octet-stream; charset=UTF-8
Content-Disposition: attachment; filename=some_name.pdf
0% found this useful