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 / Webcamera saving photo...
Power Apps
Suggested Answer

Webcamera saving photo in app as png

(1) ShareShare
ReportReport
Posted on by 4
I have an app in which users use their webcamera, been working fine but recently the app has been saving the file in the sharepoint list as a png file rather than jpg. The Power Automate flow then can't process the file. Anyone come across this and have a solution please.
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,271 Most Valuable Professional on at
    You have control of the file name - whether it be in Power Apps or a Flow, the file extension you allocate will save the file type required - how are you currently naming it ?
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • PeterOlding Profile Picture
    4 on at
    Thanks for the reply
     
    At the moment I put the image in a variable 
    Set(
        PhotoFromImage,
        JSON(
            Image2.Image,
            JSONFormat.IncludeBinaryData
        )
    );
     
    Then in my patch statement place it in a sharepoint list
     
    imgPicture: base64only,
     
    For some users the image starts "data:image/png;base64,iVB" so I assume its a png image. What ever it is it causes my flow to fail with 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.
  • Suggested answer
    WarrenBelz Profile Picture
    156,271 Most Valuable Professional on at
    The image can certainly be saved as a JPG and you also do not need to use the JSON conversion when sending to a Flow - just send the file name and the content
    YourFlowName.Run(
       "MyFile.jpg",
       Image2.Image
    )
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    156,271 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn   

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 410 Most Valuable Professional

#2
11manish Profile Picture

11manish 159 Super User 2026 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 89 Super User 2026 Season 2

Last 30 days Overall leaderboard