Can you try below:
How to upload pdf files in binary format using HTTP request and MTOM - Help / Studio - UiPath Community Forum
Also try using format as “application/binary” see if that works