Handle Base64 and Binary File Content Types in Power Automate
Identification
🔗 Binary
🔗 Base64
{ "$content-type": "image/png", "$content": "iVBORw0KG...i/DhQmCC" }
Conversion
🔗 Create Note Attachment from SharePoint File
Get file content action will return the SharePoint file content in Binary but creating a Note attachment requires Base64 value. Using the ['$content'] property of the output with the following expression will populate with Base64 value to the Document column.outputs('Get_file_content')?['body']?['$content']
Upload File with Binary Data
To upload the Binary data (e.g. documentbody column value of the Note attachment) to SharePoint or File data type column, base64ToBinary function can be used.base64ToBinary(outputs('Get_a_Note_Attachment')?['body/documentbody'])
Populate Word Template Image
To construct the file content for the image placeholder in the Word template with the Binary data type, ['$content'] property can be used as in the following expression.outputs('Get_file_or_image_content')?['body/$content']
Compose action step is required to construct the input for the image content using the Base64 value and populate the output of the Compose step to the image placeholder. If the content JSON is directly populated, the step will fail with the following error.
Summary
Published on:
Learn moreRelated posts
Power Automate: take Function
Learn how to use the "take" function in Power Automate. Grab items from the front of arrays and strings, handle edge cases, and combine with s...
Variables inside Apply To Each steps in Power Automate
For many years I’ve been saying, don’t use variables in Power Automate as it hurts the flow’s performance. Recently it was p...
Power Automate trigger and action for forms in SharePoint (Preview)
Power Automate introduces preview triggers and actions for SharePoint forms, enabling workflow automation on form submissions starting May 202...
Generate documents using forms in SharePoint with Power Automate (Preview)
Power Automate will introduce a preview action in May 2026 to generate documents from SharePoint forms by mapping inputs to templates. Availab...
Power Automate: skip Function
The "skip" function removes items from the front of an array in Power Automate. Learn edge cases, null handling, pagination patterns, and arra...
Microsoft Power Automate | 2026 Release Wave 1
Power Automate: sort Function
Power Automate's sort function arranges arrays in ascending order by value or property. Learn usage tips, the string-vs-number gotcha, and how...







