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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create image from Base...
Power Automate
Unanswered

Create image from Base64 for use in Word Template

(0) ShareShare
ReportReport
Posted on by 111

Hi Team,

 

I have a PowerApp that is converting an image to a Base64 string (just the string itself) 

 

This is my code that I'm doing to do that: 

Set (varHappyText, JSON(Image5_1.Image, JSONFormat.IncludeBinaryData));
Set (varBase64Only, Mid(varHappyText, Find(",",varHappyText)+1, Len(varHappyText) - Find (",", varHappyText)-2));
 
In my flow, i need to be able to put that into a word document and these are the steps I'm taking: 
Albertax_0-1702600849644.png

 

However, I am getting an error at the Create file step: 

"The provided workflow action input is not valid."

 

Any tips, ideas? 

 

 

 
Categories:
I have the same question (0)
  • darren-h-gill-m Profile Picture
    15 on at

    It might be that you need to use an expression to encode the content back to a binary stream.

     

    For example, I have this in one of mine:-

    base64ToBinary( body('get-template-content')?['$content'])
    darrenhgillm_0-1702602149133.png

     


    Hope it is as simple as that!

    EDIT: In answer to a question about how I am assembling the data there is nothing to show in the "get-template-content" editor, but if you look at the run time results you can see tha the structure is very like the compose action in the original question.

    darrenhgillm_1-1702602372860.png

     

     

  • Albertax Profile Picture
    111 on at

    Hi Darren,

     

    Are you able to expand your other steps? Just curious to see if your following the same method 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard