Issues encoding PDF contents into base64 to display in PDF component

Hi @nicole - welcome to the community! :slightly_smiling_face:

I'm fairly sure that the Salesforce API is streaming the PDF data back to you in a fashion similar to what is described here, meaning you have just one part of the file. The solution likely involves awaiting the result of your query in order to ensure that you have the entire document prior to converting it!

1 Like