cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

base64 collection error

Hello i have a app that sends a collection of images to a web api. problem its that i have made a code that provides only the base64 value and in the power automate i use a for each to send each image with the http request. The error comes when the json collection suddenly decides to set a "," before the base64url at the two last images. Then it failes 

base.png

error.png

  

err.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Hi @langsem 

Since a Base64 value should never contain a comma, perhaps the easiest fix is to call the substitute function and to replace the comma with an empty string in your source collection.

https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-replace-substitute

 

View solution in original post

2 REPLIES 2
Super User III
Super User III

Hi @langsem 

Since a Base64 value should never contain a comma, perhaps the easiest fix is to call the substitute function and to replace the comma with an empty string in your source collection.

https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-replace-substitute

 

View solution in original post

make a regex function in power apps u mean to clean the string ? Wouldent it cause a conflicts if i have a collection with multiple base64 values ? 

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (24,936)