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}
Solved! Go to Solution.
@Anonymous
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.
@Anonymous
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.
Hi there @RandyHayes ,
Thanks for your reply.
Indeed I do manage to display the base64 images within my app.
If data: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
@Anonymous
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.
Lost access to my previous domain. Could someone mark @RandyHayes ' response as solution?
Thanks randy.
With kind regards,
LG
Hi @Anonymous / @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.
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