function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ABHILASH AABHILASH A 

display base64 encoded PDF data receiving from other system in Lightning web component without storing data in salesforce

Hi All,

How to display base64 encoded PDF data receiving from other system in Lightning web component without storing data in salesforce.

Is using PDF.js the only way to handle this.
#lightningwebcomponent #lwc #pdfview #base64encoded
AnudeepAnudeep (Salesforce Developers) 
Hi Abhilash, 

You might find the LWC code in this developer blog useful. However, the PDF is uploaded in Salesforce. If you don't want to store the PDF data, you need to make a callout within your lightning web component. See this example

Anudeep