web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Base64 Image to Email

(0) ShareShare
ReportReport
Posted on by 59

Hello all, 

 

I have a column in my Sharepoint list with image info encoded as Base64. I then want to create a flow that sends an email with the form data stored in a sharepoint list including the picture but I cannot find a way to convert the data into an image file. 

 

So a user submits their name, email address, phone number, then captures a picture of themselves in a powerapp and that data is stored in a sharepoint list. 

 

Is this possible? 


Thanks in advance!

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AmariBarino ,

     

    If you have a base64 string column in sp list, you could use base64tobinary function to create a file content.

    vxiaochenmsft_0-1647853357791.png

    vxiaochenmsft_1-1647853369488.png

    vxiaochenmsft_2-1647853382122.png

     

    Best Regards,

    Wearsky

  • AmariBarino Profile Picture
    59 on at

    Thank you for your response! I tried using this in my flow before and kept getting the following error: Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0'. The value cannot be decoded from base64 representation. I tried rebuilding the flow as I've seen suggested in other threads but I'm still getting the same error. 

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AmariBarino ,

     

    Please provide details. 

     

    Best Regards,

    Wearsky

  • AmariBarino Profile Picture
    59 on at

    I attached images of my flow below. It fails on the compose step. error.PNG

     

     

     

     

     

    d247a34a-0f66-4951-bdbf-5fc8910949c3.png

    sharepoint column.PNG

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AmariBarino ,

     

    This is a datauri . Please try the datauritobinary function instead of base64tobinary function.

     

    Best Regards,

    Wearsky

  • AmariBarino Profile Picture
    59 on at

    That worked! Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard