Hi All,
We have a scenario in which for a GET call, LISA has to send a PDF response as a downloadable file.
Though, we are able to download the file, but the content is blank. Means pdf downloaded with no content inside it.
Approaches Followed:
1st - Copied the base64 format response and copied it in the response section. With this approach, not even able to open the pdf file, when tried hitting from the URL.
2nd - Decoded the base64 response, able to download the file and able to open it, but the file has no content(white space with 4 pages)
Below are the response headers used:
HTTP/1.1 200 OK
Server: LISA/Virtual-Environment-Server
Date: Thu, 16 Jun 2016 14:31:00 CEST
X-Powered-By: LISA/8.3.0 (8.3.0.241)
WAS_JSON: true
Content-disposition: attachment;filename=bill.pdf
LittleEndian: false
ByteAlign: true
Payload.class: String
Content-Transfer-Encoding: 8BIT
Content-Type: application/octet-stream
Content-Length: 91902
Please let us know if there are any other headers or changes we need to make to see the content inside the pdf.
Thanks in advance.
Regards,
Ankush