Hey all,
I'm having an issue with a Power Automate flow. I am storing some Base64 data in a SQL table (mainly images and PDFs), and upon request I want items to be attached to an email. Currently this is how I have set up the flow to work.

The flow runs without error but when I receive the email the image is corrupted. Using a file to base64 converter I've managed to find the issue. The contents of the attachment are actually just text, and the text is the base64 data I'm trying to send.
After converting the JPG to a txt file by renaming it, I see the original base64 data that when converting from base64 to a file gives me the original image. I was wondering how to attach the actual base64 data and get it recognized as such and not as text.
EDIT: This seems to be a problem in Power Automate. When I re-created the same app in Azure Logic apps, I don't get the same issue.