top | item 37999640 (no title) ash_gti | 2 years ago You can use ‘atob’ and ‘btoa’ functions for some of that. discuss order hn newest esprehn|2 years ago Those functions are fundamentally broken: https://developer.mozilla.org/en-US/docs/Glossary/Base64#jav...See the whole section on converting arbitrary binary data and the complex ways to do it. denzquix|2 years ago Although those functions operate on "binary strings", not Uint8Arrays, and there is no especially clean way that vanilla JS exposes to convert between the two that I am aware of. unknown|2 years ago [deleted]
esprehn|2 years ago Those functions are fundamentally broken: https://developer.mozilla.org/en-US/docs/Glossary/Base64#jav...See the whole section on converting arbitrary binary data and the complex ways to do it.
denzquix|2 years ago Although those functions operate on "binary strings", not Uint8Arrays, and there is no especially clean way that vanilla JS exposes to convert between the two that I am aware of.
esprehn|2 years ago
See the whole section on converting arbitrary binary data and the complex ways to do it.
denzquix|2 years ago
unknown|2 years ago
[deleted]