Reading file with Blob storage in Azure?

Could you give me syntax for rendering pdf file using MemoryStream as input file ?
I am reading the pdf file from blob storage from Azure and need to render as pdf.

I need to integrate in Blazor application.

I am using pdfjs express plus library.

Basic steps would be:

  1. Convert your memory stream to base64 string
  2. Use JSInterop to call your js that initiates your webviewer
  3. Convert your base64 string to a Blob
  4. Feed the blob to your viewer using the loadDocument call.

Example here: