web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

How to send Base64 file content in HTTP Post request body in Power automate

(0) ShareShare
ReportReport
Posted on by

Hi Everyone, I'm facing an issue in HTTP POST request.

 

1. I'm getting my input file from SharePoint folder when i try to give that file Path it is throwing me an error not accepting the SharePoint URL in HTTP body.

 

 

Format which i'm using in HTTP Body

 

{

 

"urlSource": "MySharepoint file url"

 

}

 

 

 

2. Instead of this i'm trying to use Base64 file content in Body but this is also throwing me an error saying that "Invalid Argument"

 

 

Format which i'm using in HTTP Body

 

{

 

"fileName": "my file name",

"urlSource": "Base64FileContent Variable"

}

 

 

 

 

It is giving below error.

 

{

  "error": {

    "code""InvalidArgument",

    "message""Invalid argument.",

    "innererror": {

      "code""ParameterMissing",

      "message""The parameter urlSource or base64Source is required."

    }

  }

}

 

 

 

I have the same question (0)
  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at
    Re: How to send Base64 file content in HTTP Post request body in Power automate

    Hey @PrathapReddy1 

     

    Can you be more precise in what do you want to achieve? Do you want to create an new document in sharepoint with a filecontent as a base64 ?

  • CU06020423-0 Profile Picture
    on at
    Re: How to send Base64 file content in HTTP Post request body in Power automate

    Hi @alaabitar , I have already a file in Sharepoint document library folder. I want to send a Post HTTP request to Azure form recognizer. In body i need to pass my Sharepoint folder File. When i give direct link of my sharepoint file. It is throwing me an error. Now i'm trying to do with Base64 file format. This is also i'm getting error. 

    Is it possible to send my sharepoint file URL in HTTP request body. 

  • Suggested answer
    Karen-Tang Profile Picture
    2 on at
    How to send Base64 file content in HTTP Post request body in Power automate
    Hi @CU06020423-0 , 
     
     
    I used "Get file content" to retrieve the based64 formatted string.

    Then you should pass this to your HTTP POST request body.
     

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

Coming soon: forum hierarchy changes

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
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard