jeudi 17 juin 2021

how to retreve a Uint8array form a arraybuffer

i have a array buffer and i want to convert the Uint8array form the buffer to a string here is my code:

JSZipUtils.getBinaryContent(runtime.globalVars.fileURL, function(err, data) {
    if(err) {
        throw err; // or handle err
    }

    JSZip.loadAsync(data).then(function () {
        console.log(data)
        filedata = data
        
    });
});

I'm using JSZip to read a json file




Aucun commentaire:

Enregistrer un commentaire