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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Image control from gal...
Power Apps
Answered

Image control from gallery not loading onedrive image

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everybody,

 

I have a problem. 

I have an image control on a gallery and i use thisItem.photo to load a picture from onedrive.

 

So when i insert an image manually in the image control and patch it, it works and in onedrive the column photo contain "apres://........."

 

When i close and re-open the app the image control in gallery is empty but in onedrive the column photo is correctly filled with the same content "apres://........"

 

Why the image control is empty when I close and re-open the app while the image value is correctly filled in onedrive?

 

Many thanks for your help

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you provide more information?

    How do you save images to onedrive? (What is your formula? Where do you save the picture? Is it in the excel table in onedrive ?)

     

    Did you use the add picture control? 

    If so ,the point is to use JSON function to save the images.(base64 format)

     

    v-xiaochen-msft_0-1618812562924.png

    1\ Add a button control and set its onselect property to:

    Set(Thevar,JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData))

     

    Then use patch function to save it to excel table in onedrive.

    2\ Add another button control and set its onselect property to:

    Patch(Table1,Defaults(Table1),{'Site Name':Thevar})

    v-xiaochen-msft_1-1618812904972.png

     

    3\ Create a new canvas app and add an image control and set its Image property:

    Substitute(Last(Table1).'Site Name',"""","")

    v-xiaochen-msft_2-1618813172536.png

    // Remove the double quotes

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard