web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Apps Camera Savi...
Power Automate
Unanswered

Power Apps Camera Saving Image to Sharepoint Folder

(1) ShareShare
ReportReport
Posted on by
0

I have built a Canvas Power App to take a photo and send it to a Sharepoint Folder. My camera control is "Camera1" and I have a text input field for the filename "SKUInput"

I have a Submit button with this code in OnSelect:

If( !IsBlank(SKUInput.Text), NewStockPhotos.Run( SKUInput.Text & ".jpg", // File name JSON(Camera1.Photo, JSONFormat.IncludeBinaryData) // File content ), Notify("Please enter a SKU.", NotificationType.Error) )

I am using a Power Automate template saved as NewStockPhotos. It is a Microsoft template found here: https://make.powerautomate.com/environments/Default-774d3f34-6850-4d5b-856b-92537239edf7/galleries/public/templates/fe971b57c1994482b565ccfce936900d/upload-a-photo-to-sharepoint-from-power-apps.

I have added my Sharepoint Site and the Folder for Storing the images \New Stock Photos.

I cannot get it to save the image to my Sharepoint folder. It fails in the Compose section of the Power Flow with this message:

InvalidTemplate Unable to process template language expressions in action 'Convert_to_binary_image' inputs at line '0' and column '0': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value '' was not formatted correctly. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'.

Any ideas? Regards from Richard

I have tried using CoPilot to help but it is taking me around in circles. Apart from adding my SharePoint site and folder name "New Stock Photos" I have used the Power Automate template as it comes

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    Did you get this working or do you still need help?
     
    Also, I don't want to look at a template, I want to see what you did, your inputs, outputs etc. So I can see where the mistake or issue is.
     
    please share some pictures, let's look at your data, especially in the flow you said fails, share that flow run with the inputs and outputs of each action as well as the action that fails and we can get you fixed right up!! I have an inventory app for all my Christmas decorations that uses the camera and SharePoint and works so should not be an issue.
     
    Cheers!
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard