Closed
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?
***Edited by Moderator: Pooja Gadige to add platform capability tag***
To see attachments, please log in.