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 / converting octet-strea...
Power Automate
Answered

converting octet-stream to pdf using flow - upload file from dataverse to SharePoint

(0) ShareShare
ReportReport
Posted on by 26

Hi,

We have attached the file in dataverse which has originally base64 format.

I want to upload this file in SharePoint in pdf format not in base64. I am using 'Download a file or an image' action to get file content from dataverse. Its output is coming like this - 

{"body":{"$content-type":"application/octet-stream","$content":"SlZCRVJpMHhMal...........

Here content type is octet stream.  How can I convert is to binary and create file in sharepoint? Any other approach is welcome.

Categories:
  • Verified answer
    v-wenjuan-msft Profile Picture
    Microsoft Employee on at

    Hi @akshaykumar ,

     

    Consider this function to convert base64 to binary:

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

    base64ToBinary(outputs('Download_a_file_or_an_image')?['body'])

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard