1

I make an call to external service which returns a PDF file. It is received as byte stream in my code. How do we convert the byte array and send it back as my service response?

1 Answers1

-1

You can decode it using fetch() (or XMLHttpRequest() for older browsers). For more information you could checkout this link.

Kunal Pal
  • 545
  • 8
  • 21