15.06.2016, 09:12
Hallo,
ich versuche mit JSZIp http://stuk.github.io/jszip/documentation/api_zipobject/node_stream.html
und node.js eine .zip Datei zu entpacken, aber ich kriegs irgendwie nicht hin?
Die synchronen Methoden sind alle removed ebenso funktioniert asNodeBuffer() http://stackoverflow.com/questions/29038985/node-js-jszip-library-to-extract bei mir nicht.
ich versuche mit JSZIp http://stuk.github.io/jszip/documentation/api_zipobject/node_stream.html
und node.js eine .zip Datei zu entpacken, aber ich kriegs irgendwie nicht hin?
Code:
console.log(data.length ); //44497577
zip.loadAsync(data,{optimizedBinaryString:true}).then(function(z){
console.dir(z); //<- wird nicht aufgrufen, then geht nicht
//auch nicht optimizedBinaryString:false
});
console.dir(zip.files); //Object
console.dir(zip.files.length); //undefined
Die synchronen Methoden sind alle removed ebenso funktioniert asNodeBuffer() http://stackoverflow.com/questions/29038985/node-js-jszip-library-to-extract bei mir nicht.