B64ToBuff-Funktion zum Konvertieren von Base64-String in ArrayBuffer hinzufügen

This commit is contained in:
Developer 02
2024-05-22 16:16:13 +02:00
parent 0c6fd2efe3
commit 824bf6fb82
3 changed files with 3 additions and 10 deletions

View File

@@ -0,0 +1 @@
const B64ToBuff = (base64String) => new Uint8Array(Array.from(atob(base64String), char => char.charCodeAt(0))).buffer;