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 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:

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 Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard