I am getting byte array like var byteArr=[12,-123,43,99, ...] from API, Then I am converting it into UTF-8 String by
var utf8_str = String.fromCharCode.appl
I had issues on another project with btoa
not doing a proper conversion, so I ended up using Base64 binary in my project to decode the Base64 response.
What I noticed was that the file I transferred was bigger when saved on the phone compared to the file residing on the server.
Maybe that is the case for you as well?