Skip to main content

Notifications

Community site session details
Power Automate - General Discussion
Answered

Convert Image to Base64 in Power Automate

Like (0) ShareShare
ReportReport
Posted on 4 Nov 2021 18:00:23 by 22

I have a Power Automate action that requires an image in base64. Is there a way to convert a given image to base64 using Flow via an action or Expression builder?

  • Verified answer
    CFernandes Profile Picture
    8,283 Most Valuable Professional on 04 Nov 2021 at 18:42:12
    Re: Convert Image to Base64 in Power Automate

    Hey Mate @jokanol1 

     

    You can use the Expression - base64(<your file content>)

     

    CFernandes_0-1636051239053.png

     

    If you are getting content from a SharePoint the you direct convert it  - using the formula -

     

     

    CFernandes_0-1636051656266.png

     

    outputs('Get_file_content_using_path')?['body']?['$content'] 
     
    CFernandes_1-1636051702024.png

     

     

    https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/#:~:text=To%20use%20an%20expression%20in,See%20more%20on%20each%20category

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started
Loading complete