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

PenInput to PDF

(0) ShareShare
ReportReport
Posted on by 725

Hi everyone

I think I have confused myself into a haze.

I have a flow that is triggered from Power apps, but getting data from Sharepoint. Power apps is just telling Power automate which single record to get from Sharepoint. The flow is producing a pdf which it emails to myself. So that part is fine. But I'm not quite sure what I have to do to the data coming from Signature column which is a multiline text. Which is in this format: "data:image/png;base64,iVBORw0KGgoAA......

Any help would be much appreciated.

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

    Hi @Corissandageri ,

     

    It's a dataurl.

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs

    Simply put, it converts the binary contents into a base64 string and it adds a header at the beginning.

    If you want to convert the dataurl to file content, please try the datauritobinary function in flow.

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

     

    Best Regards,

    Wearsky

  • R Bakker Profile Picture
    725 on at

    Hi

    I tried to use the dynamic content from Sharepoint GetFile 

    dataUriToBinary(outputs('Get_item')?['body/PSignature'])
    But that didn't work
     
    PSignature is my Signature column in Sharepoint
     
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Corissandageri ,

     

    Please try this:

    dataUriToBinary(replace(outputs('Get_item')?['body/PSignature'],'"',''))

     

    Best Regards,

    Wearsky

  • R Bakker Profile Picture
    725 on at

    Hi again

     

    ScreenShot.jpg

    This does not seem to work.

    ScreenShot2.jpg

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

    Hi @Corissandageri ,

     

    Thanks for your screenshots.

    We don't need to convert it from datauri to binary if you use it in html text.

    You can use the datauri string directly in <img> label instead of using datauritobinary function.

    Hope it helps.

    vxiaochenmsft_0-1672905019870.png

     

    Best Regards,

    Wearsky

  • R Bakker Profile Picture
    725 on at

    Thank you, this worked.

    So much for me to learn.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard