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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,414)