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 / Add Picture Control No...
Power Apps
Answered

Add Picture Control Not Working with Version 3.21061.21 Photo Blank After Capture

(2) ShareShare
ReportReport
Posted on by 104

Hey everyone, so I have a couple different canvas apps that have been working great for the last couple months.

Users can capture photos in these apps via an Add Picture Control, and then those photos are saved to a SharePoint custom library via a flow.

 

As of this week, two different users across two different apps have experienced a new issue preventing them from capturing photos.

Both users have iPhones, and both users are new - they just downloaded Power Apps this week, version 3.21061.21.

I also reinstalled Power Apps on my iPhone today and was able to recreate the issue, so far without a resolution.

 

When the user goes to take a photo for the first time, their prompted to allow access to their camera and photos.

After hitting allow, the users can take or upload photos - this is all normal.

However, after either selecting a photo from gallery or taking a photo and hitting Use Photo, the photo is blank on the entry screen.

The control thinks that I've added a photo, as the ChangePictureText is activated, but it's just blank.

 

In my flow, I get the following error because the base64 value of the image that's passed is not actually base64:

Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '11775': 'The template language function 'decodeDataUri' expects its parameter to be formatted as a valid data URI. The provided value '/SessionStorage/D554AE62-9CBF-4EB9-BFFE-77ABEDC86231.jpg' was not formatted correctly. Please see https://aka.ms/logicexpressions#decodeDataUri for usage details.'.

 

Something else that may be worth noting - in my iPhone settings for Power Apps, there isn't an option to set an access level for Photos.

This option existed before I re-installed Power Apps, and it is missing for both of the original issue users as well.

Thank you guys for any help!

Categories:
I have the same question (0)
  • Verified answer
    theozapps Profile Picture
    104 on at

    I was able to resolve the issue!

    I had to disable Improved Media Capture under Experimental Features.
    Hopefully this helps out someone else who runs into this issue - pretty sure it's brand new.

  • Mari Profile Picture
    Microsoft Employee on at

    Thanks for updating the thread with your findings!

  • pellizzari_andr Profile Picture
    42 on at

    Improved Media Capture under Experimental Features 

    also creates problems for the photo component as it doesn't work anymore while you use it in development

  • rbhurjee Profile Picture
    on at

    So glad I found this post! What a silly thing.

  • J_CF Profile Picture
    6 on at

    I couldn't find Improved Media Capture under Experimental Features... any update on this topic?
    thanks

  • RuneHanssens Profile Picture
    20 on at

    I found another fix for this. Store you image in a variable and convert it to json using following function.

    Set(ImageValue, JSON(Camera1.Photo, JSONFormat.IncludeBinaryData));

    Note that this adds quotes at the beginning and end of your value, you can remove these using following function. Char(34) = "

    Substitute(ImageValue, Char(34), "")

     

  • Matt47336 Profile Picture
    6 on at

    How do you eliminate the "data:image/png;base64," text that it gives you at the beginning of the string? 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard