Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rjdi1D2AzLsgB9LuPHwnQR
Power Automate - General Discussion
Answered

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

Like (1) ShareShare
ReportReport
Posted on 6 Aug 2021 12:43:47 by 354

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. 
  • Xerxel Profile Picture
    67 on 18 Jan 2023 at 19:10:25
    Re: Get File Content "$content-type": "application/octet-stream",

    Alternatively, paste this into a Compose:

     

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

  • JozefMacak Profile Picture
    8 on 16 Dec 2022 at 12:48:44
    Re: Get File Content "$content-type": "application/octet-stream",
    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

  • kgreen8790 Profile Picture
    189 on 04 Dec 2022 at 23:01:41
    Re: Get File Content "$content-type": "application/octet-stream",

    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.

  • kgreen8790 Profile Picture
    189 on 04 Dec 2022 at 22:53:16
    Re: Get File Content "$content-type": "application/octet-stream",

    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.

  • pthimm Profile Picture
    8 on 24 Oct 2022 at 11:00:38
    Re: Get File Content "$content-type": "application/octet-stream",

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

  • TheSaj Profile Picture
    7 on 01 Sep 2021 at 19:34:16
    Re: Get File Content "$content-type": "application/octet-stream",

    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".

  • Community Power Platform Member Profile Picture
    on 31 Aug 2021 at 02:45:10
    Re: Get File Content "$content-type": "application/octet-stream",

    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 30 Aug 2021 at 20:25:50
    Re: Get File Content "$content-type": "application/octet-stream",

    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

  • Verified answer
    Powerplatform01 Profile Picture
    386 on 06 Aug 2021 at 17:15:11
    Re: Get File Content "$content-type": "application/octet-stream",

    @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)

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard