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 images and JSON...
Power Apps
Suggested Answer

Camera images and JSON on Iphone

(0) ShareShare
ReportReport
Posted on by
Hey there everyone, so I had an issue that is giving me a little of a headache. I was setting an app to take a couple of pictures and sent them to Power Automate to evalute both photos by photo recognition. Now, everything was working smooth while I was making test with the computer, but now I started to make tests with phones. So this is the deal, when I was working with the PC, the process was able to convert the photo taken by the camera to JSON and to evaluate properly on Power Automate and IA Hub. When I tried to take the pictures with the phone, surprise! now we do not have a string as we had at the PC, we have just an output like this: /SessionStorage/F80808c-asd-asdlijasdij.jpeg
 
So what I think is the app running on the iphone is making things different, but now I am not reaching an answer with my knowledge, do you know how to get this string correct again when we are working with the phones?
 
Thank you!
 
Donaldo
Categories:
I have the same question (0)
  • Suggested answer
    Sam_Fawzi Profile Picture
    917 Super User 2026 Season 1 on at
     
    This is expected behavior on mobile.
    On iOS/Android, the Camera/Add picture controls often return a media URI reference (like /SessionStorage/...jpeg) when the value gets coerced to text. Microsoft calls this out: captured media can be “referenced by a text string URI,” and if you need to transmit it, you should base64-encode it using JSON().
    Fix (Power Apps)
    Don’t pass the camera output directly. Convert it explicitly to a base64 data URI:
    Set(
        varImgJson,
        JSON(Camera1.Photo, JSONFormat.IncludeBinaryData)
    );
    MyFlow.Run(varImgJson);
    This forces Power Apps to include the binary image data (base64) instead of the /SessionStorage/... reference.
    In Power Automate 
    Your parameter will look like: "data:image/jpeg;base64,AAAA..."
    Convert it to binary before sending to AI/vision actions (example expression):
    dataUriToBinary(triggerBody()?['text'])
    (Use the action/input where your Power Apps parameter lands.)
     
    Hope that will help you with the above issue. 

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 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard