What I'm trying to do is get an attachment from the "Notes" entity and attach that to an email I'm sending. Everything works except for the fact that the attached file can't be opened or appears to be corrupted. This happens for all file types. I tried images and documents.
Here is where I get the Note entity I need. I use an identifier that is sent by a PowerApp. This works and I can see the file name is the correct one.

Then I send my email with an attachment. The attachment name is set to "File Name" and the content is set to "Document".

I looked online and it seems like this is how it's supposed to be done? But for some reason I can't open the file sent in the email. Do I need to convert it to a different data type or something like that?