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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,654)