Fetching blob from API and converting to PDF

Hi, I’m trying to either display or download a PDF that is coming in from an api as a blob.

In the browser we are using window.URL.createObjectURL to create download for user. Is there a way to replicate this in Expo?



If I understand you correctly, I think you could have a button in the app that when clicked, fetches the PDF from a server and then Shares the PDF.

The user would then be able to choose a PDF viewer to view the PDF. Perhaps you could have a second button if the user just wants to download the PDF.

That’s what I would try, unless someone else has a better suggestion :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.