adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

out of range error at 2.5MB

Open Calemy opened this issue 5 months ago • 1 comments

    const zip = new AdmZip(`file.osz`) //please rename attatched .zip to .osz
    const nvZip = new AdmZip()
    const entries = zip.getEntries()
    for(const entry of entries) {
        if(entry.entryName.includes(".avi") || entry.entryName.includes(".mp4") || entry.entryName.includes(".flv")) continue;
        console.log(entry.entryName) //<- watch how it get stuck at audio.mp3
        nvZip.addFile(entry.entryName, entry.getData()) //<- out of range error at 2643799 bytes (2.5MB?)
    }

    console.log(nvZip.getEntryCount()) //<- this never runs

    const buffer = await nvZip.toBufferPromise()

file.zip

Calemy avatar Sep 02 '24 17:09 Calemy