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

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

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

View solution in original post

lg-power
Frequent Visitor

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (75,817)