Convert a file to Base64-encoded ASCII
Convert a file (binary) to a Base64-encoded ASCII string using btoa. You can convert the output back to a binary array using atob:
Uint8Array.from(atob(data), c => c.charCodeAt(0))
Input
Output
...
Convert a file (binary) to a Base64-encoded ASCII string using btoa. You can convert the output back to a binary array using atob:
Uint8Array.from(atob(data), c => c.charCodeAt(0))
...