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 / Get File Content "$con...
Power Automate
Unanswered

Get File Content "$content-type": "application/octet-stream",

(1) ShareShare
ReportReport
Posted on by 381

Hello. 

 

I am using the Get File Content to grab the contents of a CSV file, however the output of the get file content is 

{
  "$content-type""application/octet-stream",
  "$content""S24354542JKLSDFHDSAF5hbCBJZCxOYW1lLEVtYWlsLFRva2VuLEV4ZWN1dGVkLFN0YXR1cyxDb3VudHJ5IDogUmVzZWFyY2ggICBQcm9wb3NhbCAgIFN1Ym1pc3Npb24gMSxDb3VudHJ5IDogUmVzZWFyY2ggICBQcm8908SDFHLKASDFpb24gMixDb3VudHJ5IDogUs08909WDFHJSDKSDHFALKSwxLCwsT2xpdmVyIFNlcmdlYW50LG9saXZlcnNlcmdlYW50QGhvdG1haWwuY29tLCwwMy8wNi8yMDIxLEFOU1dFUkVELDI0LDI4LDMzLDM5DQo="
}
 
I have been googling, but to no avail - i simply am failing to understand why the output of the get file content is appearing as it is (in the application/octet-stream format). 
 
Can someone 
 
a) explain what this application/octet-stream is 
b) explain how i can extract the contents of this CSV so i can play around with the data
 
Thanks in advance. 
Categories:
I have the same question (0)
  • Verified answer
    Powerplatform01 Profile Picture
    386 on at

    @Vstar19 

    If you want to fetch CSV data and want to save it in SharePoint or in some other location you can refer this video.Also request you to please subscribe this PowerAutomate channel.

    (link removed by Admin)

     

  • TheSaj Profile Picture
    7 on at

    I am dealing with the same issue, and trying to find a solution that does not require a third party connector like Encodian, as it is not an option for me.

     

    - Jason

  • Community Power Platform Member Profile Picture
    on at

    Here is a solution for you, this works for me all the time.

    Have you tried to change the option Infer Content Type to Yes (default is No)?

     

    2021-08-30_21-36-06.png

     

    See the difference in my flow below.

     

    Infer Content Typs = No

    2021-08-30_21-37-44.png

     

    Infer Content Type = Yes

    2021-08-30_21-38-16.png

     

    Let me know if you need more help with the following steps to extract the CSV data.

     

    Mark as solved if it did answer your question.

  • TheSaj Profile Picture
    7 on at

    My experience is that it has generally been marked Yes by default.  But it did not make a difference.  

    Though, having it on did prevent my flow from being able to read in and parse the content of a JSON file.  In that case, I had to set it to "No".

  • pthimm Profile Picture
    8 on at

    hey mate, instead of a link to your channel a written answer could still be available here, in contrast to your video...

  • kgreen8790 Profile Picture
    189 on at

    The video link is dead. YouTube says that it is due to the account being terminated. I'm also dealing with this same issue and am looking for help.

  • kgreen8790 Profile Picture
    189 on at

    I have mine set to yes but am still getting the octet-stream object with the weird string. I've tried the video link in the accepted solution but it is unfortunately dead.

  • JozefMacak Profile Picture
    8 on at
    You need to decode, what is inside of $content.
    This is decode function that you are looking for, pointing to $content from example below:
    decodeBase64(outputs('Compose_2')['$content'])
     
     

    JozefMacak_0-1671194342891.png

     

    BTW you can paste what is inside of $content to notepad++ and decode via MINE Tools->Base 64 Decode

    JozefMacak_2-1671194763404.png

     

    Hope this helps

  • Xerxel Profile Picture
    69 on at

    Alternatively, paste this into a Compose:

     

    @{decodeBase64(outputs('Get_file_content')?['body']['$content'])}

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard