Why is readAsBinaryString() deprecated? From W3C
The use of readAsArrayBuffer() is preferred over readAsBinaryString(), which is provided for backwards compatibility.
readAsBinaryString returns a completely different thing than the other method, so how could one be the replacement for the other?
In my specific case I have a Blob that I need to convert to base64, there are many ways, but most of them not memory efficient. As of my tests calling window.btoa() from readAsBinaryString' result works best. If I cannot use this anymore (or for now lets say "should"), then I must convert the array to a string using iteration and strings concatenation which is not memory efficient at all!
So after researching for days I don't really find an alternative to readAsBinaryString, that's why the question, or do you see an alternative that also works with 100MB blobs?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…