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 III
Super User III

@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.
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

4 REPLIES 4
RandyHayes
Super User III
Super User III

@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.
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 III
Super User III

@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.
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

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,655)