I am having a hard time recreating this code in python:
dtoIn.inputFile = new Blob([JSON.stringify({ financialTransactionList })], { type: "application/json" });
API only takes files as blob files and I am not sure how to convert pdf files into binary streams. So I tried to convert it using the IO library but I am not having the same result as in JS
with open(file_destination, "rb", buffering=0) as pdf_file:
binary = BytesIO(pdf_file.read())
How to do it right?