Hi all,
I'm struggling to convert the returned data from an HTTP Get Web Resource action to base64 for use later in creating a PDF from HTML.
The objective is to replace the src URL in the img link of a rich text column with the base64 content so it will render correctly in the final pdf.
So I'm getting the image from the blob storage using the Get web resource action (see next).

This call returns content that I understood to be binary (see the sample next). I want to convert this to base64 and include it in the HTML output.

Since there is no binarytoBase64 function in power automate I've followed the recommended approach of setting a string variable with outputs('Get_web_resource')?['body/$content'] which is supposed to convert to base64 automatically.
However, this doesn't give me a valid base64 version of this image.
I'm missing something. Any suggestions would be very welcome.
Cheers, Innes (NZ)