First of all, i am using node.js with provider hosted app with elevated rights to do this, no front-end at all.
I just want to download a file using the API and then save it. I can't save if the API response isn't in binary format (or at least i cant save with the response that gives me).
Using the API endpoint:
with the header option
doesn't return me the content in binary. It returns me the content but not binary.
With some type of documents (.docx) this doesn't let me to rebuild the file and save into the disc, so is a very high trouble for me at the moment.
I hope someone can bring me some light to be able to download the file as binary or whatever mode but not like it actually returns me the file.