Showing results for 
Search instead for 
Did you mean: 

Native base64 encode/decode

Would be great if PowerApps would support base64 encoding and decoding. Native would be ideal so this could drive offline. I would like to be able to communicate with an image OCR API.
Level: Power Up

Any solutions at moment?  API calls?

Not applicable

Please support this function!

Level: Power Up
To Encode:
TextForm = Binary.ToText(Text.ToBinary("Password"), BinaryEncoding.Base64)
Level 10

@CarlosG Can you please share some more information?
Can I have the Base64 string of an image in Powerapps?
Right now we can use a custom connector and the image is sent to the database as a Base64 string. Is it possible to have the string in Powerapps before we sent it to the database?
I don't understand what you mean by
TextForm = Binary.ToText(Text.ToBinary("Password"), BinaryEncoding.Base64)
Thank you in advance 🙂

Level: Powered On

You can use Flow to handle Base64 conversions.

Basically the steps are to create a Flow that will accept a Data URI as a parameter, and convert it to Base64 like this:


and in your Canvas app, call the Flow and pass the content as a url encoded parameter - here is an example of taking a photo from a collection and passing it into a Flow:

'PowerApp->Createanewrecord'.Run(First(photo).Url , BrowseGallery1.Selected.Case)

then you can return your base64 value this way:


I just wrote a blog on taking pictures using a Canvas app and storing the pictures in Dynamics CE (aka CRM) as Notes using Base64 encoding: