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 / Camera control photo m...
Power Apps
Answered

Camera control photo metadata changed / broken

(0) ShareShare
ReportReport
Posted on by 269

Hey,

 

I'm wondering if the camera control's photo metadata was changed in the latest releases or maybe broken.

 

Scenario:

I have a camera control in my PowerApp. When I select it, a photo is taken and set to a local variable and uploaded to a function (Custom Connector).

UpdateContext({ CapturedImage: Camera1.Photo});;
UpdateContext({ ResultValue : ImageUploadAPI.UploadImage(CapturedImage) });;

The "CapturedImage" is also used as a source in an image control.

 

Everything worked fine until today.

Now the upload isn't working anymore (missing metadata like filename, contenttype, ...) and the image control where I used the taken photo as source remains blank.

 

Is there anything broken in the current release or was there a change made on purpose and I am not reflecting that at the moment?

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @AlexN,

     

    Could you please share a screenshot of your PowerApps app’s configuration?

    Which version is your PowerApps app?

     

    I think there may be something wrong with the Camera control within your PowerApps Mobile. I have made a test on my side and don’t have the issue that you mentioned. The image control where I used the taken photo shows up picture successfully.

     

    Please check if the version of your PowerApps app is the latest version (2.0.730), if not, please update your PowerApps app to latest version. In addition, you could consider take a try to re-create a PowerApps app and check if the issue is solved.

     

    Best regards,

    Kris

  • Verified answer
    AlexN Profile Picture
    269 on at

    Hey @v-xida-msft,

     

    thanks for your answer. There was a mistake on my side as I found out today 😕

    In my app I am using the code I wrote inside the OnSelect of the camera control. After inspecting my problem I can now say this works as expected, so I guess I can close this issue now.

     

    What led to the problems I was having is another feature of my app. Most of tzhe time, I'm not selecting the camera control directly (as it is at the top of the screen and for large screens it is not comfortably touchable when using the device with one hand and your thumb). Therefor I have a second control which overlaps the whole screen an simply does a 

    Select(Camera1)

    This triggers the OnSelect of the camera control, but the Camera1.Photo is just empty if the Camera control wasn't directly "clicked" before. If I once clicked the Camera control directly, selecting it via another control the Photo is not empty, but is always the one that was taken when the camera control was directly touched. Could this be a bug or is this expected behaviour?

  • AB-07051437-0 Profile Picture
    3 on at

    I'm having a similar experience. When I select the Camera control directly (I press on the image), I get a fresh, brand new image. When I press a Button with OnSelect set to Select(Camera1), the image already contained in the Camera control is returned once again without creating a new one.

    When I switch the OnSelect implementation of the Camera control with that of the Button, exactly the same thing happens: when I press the button, the image is not refreshed with the current image, while pressing the camera control, the image is newly created.

     

  • AlexN Profile Picture
    269 on at

    @Arno_Tolmeijer: Currently I'm always using the Camera.Stream property of the camera control to achieve what I want. Just set the stream rate to another value than 0 and it should work (stream rate is the time in milliseconds between each stream, I'm currently using a value of 250 or 500 depending on the intended use)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard