Hello everyone,
I am trying to create a PDF file in a Sharepoint folder using the content that is stored in my SQL Server on a column with varbinary(MAX) has its type and looks like this with the ID and PdfContent columns.
Then I am using a Get Row (V2) to fetch it like this

And it is giving me this output

Here I think it might be where the errors start because what is in the PdfContent here does not start the same way as the one in the database, so maybe they are different types I don't really know.
But still I move on and try and create the PDF in the Sharepoint with the PdfContent like this

I'm not sure if using 'base64ToBinary' is the correct expression to use and even if the value is being passed correctly to it, but it is not working like this.
In the Sharepoint folder the PDF is being created but it only has 50 bytes and when I try to open it, it gives this error so it is really not working.

I just want to get the PDF to be able to attach it to an email, so if anyone has already done this and could help I would really appreciate it.
Thanks in advance everyone
Telmo Ferreira