web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display multiples pict...
Power Apps
Unanswered

Display multiples pictures in excel cells in Power app gallery

(0) ShareShare
ReportReport
Posted on by

I have images inserted in excel cell, and I want to upload the table/sheet to power apps as data source for my form. When I tried connecting data, the feedback indicated it cannot connect. But when I delete the image column the data is able to connect.

 

As a requirement for the form I am developing, the images must be displayed, so that the individuals could be identified as they sign the form or fill it.

 

How can I get the images displayed in power apps gallery?

See example of issue.

Thanks there.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @WKD ,

    Simple answer is that you cannot. Excel as a Data Source in Power Apps does not support images embedded in the Table. If this was a SharePoint Image field, it would certainly work.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • rzuber Profile Picture
    545 Moderator on at

    You can convert the images to base64 using an ExcelScript, which you can call from a Power Automate flow, which can either return the base64 image to your Power App, or save the image to a SharePoint document library to view in your gallery.. It's not a simple task.. but not a super difficult one either.

     

    This is actually part of the requirements for a project I am working on, which I have already developed the script to convert the worksheet into HTML, and the images into base64, which is transferred to the app, but I have not yet developed the formulas to utilize those images..

     

    In ExcelScript you need to get the images from the worksheet's shapes... Keeping in mind that I am no Excel/JavaScript expert, here is an example from my script:

     

    if (ws_obj.getShapes()) { // .....Check if Shapes Exist
     var arr_temp = ws_obj.getShapes(); // ......Create Temporary Shapes Array
    
     for (i = 0; i < arr_temp.length; i++) { // ......Process Shapes
     var st_temp = arr_temp[i].getType(); // .......Get Temp Shape Type
    
     if (st_temp == ExcelScript.ShapeType.image) // .......Check if Image
     arr_shape.push(arr_temp[i]); // ........Add Shape to Array
     }; // ......End Processing Shapes
    }; // .....End Shapes Check 

     

    Later on, I do this to save the images to the 'HTML_SHEET' object I convert to a JSON string, and send back to the flow.

     

    for (i = 0; i < arr_shape.length; i++) { // ......Process Image Shapes
     var png = ExcelScript.PictureFormat.png; // .......Get PNG Format
     var b64 = arr_shape[i].getImageAsBase64(png); // .......Get Image Base64 String
     var obj = { // .......Create Image Object
     NAME: "Image_" + (i + 1) + ".PNG", // ........File Name
     BASE64: b64 // ........File Contents
     }; // .......End Image Object
    
     arr_image.push(obj); // .......Add to Array
    
     tm_elapsed = Date.now() - tm_ScriptStart; // .......Get Elapsed Time
    
     if (tm_elapsed > ms_minRemaining && ms_limit > 0) break; // .......Break Loop if Out of Time
    }; // ......End Processing Image Shapes

     

    My flow saves this to a multi-line text column I added to the file's document library. This actually happens automatically if a file hasn't already been processed.. I have another flow that checks the library for files that haven't been processed that calls this flow that runs the ExcelScript... but I digress..

     

    My point is that all of this is possible. (but pretty complicated) Hopefully this will help get you towards what you're looking for. Sorry I haven't completed the final steps myself yet.. (Working on another part of the project)

  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    @WKD ,

    I will leave you with @rzuber @to guide you through the proposed process.. You might also want to consider a. SharePoint  Image field.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard