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.
My flow is getting a file from onedrive and afterwards, tries to upload the file with the HTTP post connector.
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)
Does anyone know how to fix this? I'm stuck right now 🙂
I solved it by changing the Content-Transfer-Encoding to base64 and convert the content to base64
Just if others have same issue