Question

2
Replies
29
Views
cshivas6 Member since 2013 11 posts
CIBC
Posted: October 25, 2020
Last activity: October 27, 2020

Code-Pega-PDF.View activity code not working in PEGA 8

byte[] byteArray = Base64Util.decode(tools.getParamValue("PDFDocument").getBytes());

String pdfName=tools.getParamValue("PDFName");

String result=tools.sendFile(byteArray,pdfName,false,null,false);

The above code used in PEGA 7 to display PDF in a browser and it's absolutely working fine, but not in PEGA 8.

Any thoughts?

There could be some changes done in sendFile method. Base64Util is deprecated in PEGA 8 due to some close stream issues.

Could anyone suggest here?

 

Pega Platform Senior System Architect
Share this page LinkedIn