Hi there
I have a small problem which I can not solve.
I receive a document in Base64 via a REST API. According to other forum posts and instructions I found, it should be possible to convert the data to binary and then save it as a document on Sharepoint.
The flow goes through without a problem as well. Only the document (PDF) is not correct on Sharepoint and cannot be viewed. The Base64 code does not seem to have been changed to binary.
The final result is still just a Base64-Code. I tested it to transfer it to a PDF with a simple online-tool. It works and it gives the correct result.
Does anyone have an idea what this could be?
Hey Troels
Thanks for your answer!
I tried this, but it was not a different result.
But I found the problem. It was very simple. I had to remove the "- and []-characters. Then it worked.
Hey Gotorus
I had a similar problem trying to attach a pdf when sending an email. I realized that the output of the Base64ToBinary function is an object in the below format (which seems to be the way Power Automate represents binary data):
WarrenBelz
146,771
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional