Skip to content Skip to sidebar Skip to footer

Jszip Unzipping Error

Trying to handle with JSZip library. I am having an issue to unzip a file. Here's a plunker demo. As you can see I can successfully zip a content, but when I try to unzip a zipped

Solution 1:

The generateAsync() method defaults to a base64 output but the loadAsync() method only see a string. You have two solutions :

  • change the generated format with `generateAsync({type:"uint8array"}) (see here)
  • or tell the load method that you are loading base64 content : loadAsync(data,{base64:true}) (see here)

Solution 2:

As answered by David has resolved my problem on my local workstation running Windows 10 OS. However it is failed on the Server running RHEL OS.

I have to fix it by switching to yauzl package for unzipping. It is recommended as mention on package's official repository, with specified merge pull 383.

Post a Comment for "Jszip Unzipping Error"