I Have an app that loads Images from Sharepoint Library. Images are in a gallery and It works fine when developping the app.
However, when its deployed to new devices, the images doesn't show. The only way to make them show is by opening a new tab and opening the sharepoint site which the document library resides in. (And this is not a one time process. You have to keep doing it from time to time)
This is not practical when deplying the app to a large number of devices.
What is causing this issue and how can i Fix it?
Solved! Go to Solution.
How did you set in PowerApps to make the image show? Did you set below formula in the Image property of the Image control inside the Gallery control?
If so, then it is known that this only works in the web version of PowerApps - not on devices. To make it work on devices, you could try to convert the SharePoint images to its URI (Uniform Resource Identifier) form and bind the image control to that. The URI is basically a long text representation of the image/picture.
Do the following:
Below is the marked key section of my Flow that does the conversion to the URI format:
The formula looks as follows:
The body('Get_file_content') is a reference to the previous step in which you need to fetch the actual content of the file (image in my case) from SharePoint.
Thank you for the Reply!
er... I Think i failed to mention something..
Well the Images are in a Document Library. But There is a Sharepoint List that has a column called "ImageURL" which contains the URL's of the images in the document library.
Ex: /*mysite*/Shared%20Documents/Images/1.jpg /*mysite*/Shared%20Documents/Images/2.jpg
So inside powerapps, what im doing is just adding a Media > Image
and for the IMAGE property, im saying "Thisitem.ImageURL"
shouldn't this work?
And for your method, wouldn't DataURI's size be large as the image's size?
And I have alot of images in the Document library.
The app is just Retrieving the Image related to a dropdown box selection.
Maybe we can use Flow to retrieve the image from the document library using ur method?
Thank you again..!
Hi @JMAFO , I had issues with using flow and an image library so placed them all in a standard sharepoint list. The column type is multiple line of text.
I used an online convertor as flow was to slow.
@Newbie2019 thanks for the reply! So to get this clear, you used a standard SharePoint list with the multi line column that stored the data uri and then connected to that list via PowerApps data connection? Did you include the images as attachments on the list?
@JMAFO Yeah, use a standard SharePoint list with a multiline column. I simply click to add a new entry and paste the into that column. For example I called my multi column imageDataURI as below:
I then display the mage in powerapps gallery by doing a lookup based on a name which is displayed against the URI in the title column.
Let me know if this works.
Check out the on demand sessions that are available now!
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.
Features releasing from October 2020 through March 2021
Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!