cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavidAR
Frequent Visitor

Create image on SHarepoint from base64 in flow

Hi,

 

I want to create an image in a sharepoint library from a base64 image. When I'm going to create the image, in the file content I put the base64 code with the formula Base64ToBinary.

 

This returns me an error like this:

"The template language function" base64ToBinary "was invoked with a parameter that is not valid. The value cannot be decoded from a base64 representation.".

 

Why doesn't work?

 

Thx

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @DavidAR 

 

 You need to use datauritobinary 

yashag2255_0-1607717940749.png

 

Refer to the blog here for more details: https://www.ais.com/newly-released-json-function-for-powerapps/

 

Hope this Helps!

 

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!

View solution in original post

5 REPLIES 5

Hi @DavidAR 

 

Can you share a screenshot of the flow? You may not need to convert to base64 or binary. If you have the base64 string, that should be enough. 

 

Hope this helps!

 

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!

DavidAR
Frequent Visitor

Hi @yashag2255 

 

Screenshot of the flow:

Amay1.PNG

 

Error:

Amay2.PNG

 

If I use base64 to create the image it creates it but wrong:

Amay3.PNG

 

Thx

 

Hi @DavidAR 

 

 You need to use datauritobinary 

yashag2255_0-1607717940749.png

 

Refer to the blog here for more details: https://www.ais.com/newly-released-json-function-for-powerapps/

 

Hope this Helps!

 

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!

DavidAR
Frequent Visitor

Hi,

 

Still not working.

Amay4.PNG

 

Thx

DavidAR
Frequent Visitor

I have replaced the quotes and it works.

 

Thx!!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,797)