cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Convert OneDrive binary file to base 64 string

Hello All

 

I have a scenario where we upload upload a pdf-file to OneDrive for business.

 

The upload trigger a flow. In the flow we need to convert the pdf-file to a base64 encded string. We will use the string in a http POST request body. I have tried with various ways but not been able to do the conversion. Any ideas?

 

br

 

Adam

 

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @Anonymous ,

 

Which function are you using to covert the PDF file content to a base64 encoded string?

 

Please take a try with function base64 from this document:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#base64

 

A test flow for your reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for this 😊

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (6,368)