I have a react app that calls an endpoint to retrieve a pdf in the format shown below. The response i got is a string. How can i convert this to base64 or uint8 array to be