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 / Why Camera control tak...
Power Apps
Answered

Why Camera control takes faulty pictures to collection?

(0) ShareShare
ReportReport
Posted on by 42

I try to take picture with a button with the following OnSelect function: Collect(MyPictures, {Filename: Text(Now(),"[$-en-US]yyyy-mm-dd--hh-mm-ss") & ".jpg", Picture: Camera1.Photo})

 

The result is the following:

Capture.JPG

 

How can I fix it?

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Purman 

     

    Can you please confirm that you have enabled camera permissions in your browser? If yes, please try to logout of the browser, clear cache and re login to verify if the issue still exist, sometimes this happens because of caching issues.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Purman Profile Picture
    42 on at

    Thank you @yashag2255 !

     

    Yes. the camera was enabled, and the issue is the same on my phone, can't display the images taken.

    I tried to relogin, but the issue is the same.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Purman 

     

    I did a little digging and you are not able to see any images in your collection, because there is no image reference exist in Camera1.Photo 
     
    To click a picture, user needs to click on the camera control and then the image reference is set, until them Camera1.Photo is a blank reference.
     
    You can use below settings if you want to click the picture on go:
     
    Camera Control:
    Stream Rate: 100
    Collection -> Collect(MyPictures, {Filename: Text(Now(),"[$-en-US]yyyy-mm-dd--hh-mm-ss") & ".jpg", Picture: Camera1.Stream})
     
    Hope this Helps!
  • Verified answer
    Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    The problem is you are trying to take the picture with a button.  The camera control can only take a picture when you click on the camera control.  Its not designed to support invoking the camera from a button.  So you are getting a picture but its an empty one.  Put the same code in the OnSelect for the Camera control.  Then click on the Camera control and you'll see that it works.

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard