
Announcements
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"
Thanks for advance.
Slava