cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lgpower
Helper II
Helper II

Launch data url (image base 64) from powerapps

Hi There, 

 

I have images saved and displayed using base64 encoded strings. I would like to launch a user's browser from my powerapp using Launch(ThisItem.Base64string) but cannot get it to work. 

 

One of the items would have the Base 64 string pasted below. Pasting such a string in a regular browser will display the image. However I cannot get powerapps to Launch a base64 string in the default browser. Any suggestions? 

 

data:image/png;base64,{base64code}

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@lgpower 

I don't know of a particular way to go direct to the base64 of a column in a list with a URL.

That is what you need...a URL.  Usually, if you're storing your pictures in a library, you can get to the image with the url provided by SharePoint.  But in your scenario, you are trying to get to a column of string data and have that be an image.

I'm not sure there is a way to go about that.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

7 REPLIES 7
RandyHayes
Super User
Super User

@lgpower 

Launch will not do this for you.

You can use your base64 string for the Image property of an Image control.  This would allow you to display the image directly in your App.

Beyond that, you would need a url to the base64 image to launch.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi there @RandyHayes ,

Thanks for your reply.

Indeed I do manage to display the base64 images within my app.

If data&colon;image/png;base64,<base64code> is not considered a url then how would I launch from powerapps? 

I have the base64 code within my app, and on a sharepoint. I do not have physical jpeg/png files stored. 

With kind regards, 

 

LG

RandyHayes
Super User
Super User

@lgpower 

I don't know of a particular way to go direct to the base64 of a column in a list with a URL.

That is what you need...a URL.  Usually, if you're storing your pictures in a library, you can get to the image with the url provided by SharePoint.  But in your scenario, you are trying to get to a column of string data and have that be an image.

I'm not sure there is a way to go about that.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
lg-power
Helper I
Helper I

Lost access to my previous domain. Could someone mark @RandyHayes ' response as solution? 

Thanks randy. 

With kind regards, 

LG

Yazeed_Ablan
Helper II
Helper II

Hi @RandyHayes 

is there any possible way to convert my base64 to url?

Thanks in Advance 

Hi @lgpower / @lg-power & @RandyHayes , I don't know if it is still relevant for you but I have found a way to launch data url from powerapps by appending an empty space beforehand, and Launch(" "&varURL) worked. Posting for reference in case anyone else wants to use this solution in the future, as I was looking for a solution myself. 

SarathSub
Frequent Visitor

Hello @ikonti - Is this something that is still working for you?
I tried it, I do see that the new tab is opening up correctly, but it just opens up the blank page (about:blank) in my case.

Anything I could be doing wrong?

 

Thanks

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.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,688)