Would the LoadTextFile(filepath) function work inside a calculation stage for your use case?
If your file is stored as a Binary Data Type and you need to BASE64 encode it to submet to an API, you can create a code stage within an object to do this for you:
(Taken from the Baidu OCR skill on the Digital Exchange)
------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------