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 : r3zGzhgDZc4rYOkDMSjdHU
Power Automate - Building Flows
Answered

Sending file with http post (receiving wrong bytes)

Like (1) ShareShare
ReportReport
Posted on 9 Aug 2022 10:15:19 by 11

Hi 

 

I'm in a project which uses Mulesoft API for forwarding calls into another system. I'm having problems uploading a pdf file to the system, as my pdf gets corrupted when I post it. 

flow.png

My flow is getting a file from onedrive and afterwards, tries to upload the file with the HTTP post connector. 

 

Jesperkj_0-1660039577916.png

 

The flow works, and i'm able to upload the file, but when I try to read the file in the other end, the bytes are wrong. 

When I open the source file on notepad I see the bytes on the left - however when I open the uploaded version the bytes looks wrong (right) 

 

compare.png

 

Does anyone know how to fix this? I'm stuck right now 🙂

 

I have the same question (0)
  • Verified answer
    Jesperkj Profile Picture
    11 on 10 Aug 2022 at 08:42:10
    Re: Sending file with http post (receiving wrong bytes)

    I solved it by changing the Content-Transfer-Encoding to base64 and convert the content to base64 

    Just if others have same issue 

     

    Jesperkj_0-1660120866061.png

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete