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 / Upload a file to Googl...
Power Automate
Unanswered

Upload a file to Google Photo

(0) ShareShare
ReportReport
Posted on by 111

I am trying to upload an image from a SharePoint library to Google Photo using API.

 

Google API expects "the media bytes" as the parameter.

The issue I have met is "how to convert/present the content of the SharePoint file to bytes data expected by Google API".

I use "SharePoint Get File Content" connector to get file content and then I have tried to convert file content to base64,string,decode but no luck

 

decodeBase64(body('Get_file_content')?['$content'])
base64(body('Get_file_content')?['$content'])
base64ToBinary(body('Get_file_content')?['$content'])
base64ToString(body('Get_file_content')?['$content'])
body('Get_file_content')?['$content']

 

 

I was able to connect to Google Photo, read data, create an album. But cannot post an image and get the error message "Request must contain a valid upload token"

 

SlavaS1_0-1671698033124.png

 

Thanks for advance.

 

Slava

Categories:
I have the same question (0)

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard