Skip to main content

Notifications

Community site session details

Community site session details

Session Id : WAw12lEkJvF851yigZ6pJO
Power Automate - Building Flows
Answered

Save Base64 Image to Sharepoint

Like (0) ShareShare
ReportReport
Posted on 22 Nov 2024 09:27:08 by 16
Hi there,

I have a Base64 encoded image that seems to be working correctly. Now I want to upload this image to SharePoint and save it as a file, but unfortunately it is not working the way I want it to.

I can see the data in the text editor when I open the image there, but I cannot view or open it as a picture. In the Apply to each action I have the output of select('Body') as input. In the Compose action, I use the replace(items('Apply_to_each')?['Images64'], 'data:image/png;base64,', '') formula to remove the Base64 header from the images. In the Base64ToBinary action I then use base64ToBinary(outputs('Compose_3')).

For the Create file action I set the output of Base64ToBinary in the file content. In the In and Output of Base64ToBinary I have added the image.

However, the image does not seem to be saved correctly. Where is my mistake?

Thanks for your help!
  • Verified answer
    SriniK Profile Picture
    3,014 Super User 2025 Season 1 on 24 Nov 2024 at 08:41:01
    Save Base64 Image to Sharepoint
    Hi,
     
    Check below link for your reference
     
     
     If I have answered your question, please mark it as the Answered. If you like my response, please give it a Like.
     
    Regards,
    Srini

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,606 Most Valuable Professional

Leaderboard
Loading started