I have a nodeJS API configured which connects to another API and retrieves a data object, which is a Base64 string.
The client that calls the API endpoint needs to download a PDF file that is made from the base64 data.
How should the data be returned to the client so that it can be converted/prompt download from the browser? Should this be done client or server-side?