我想在javascripte中解压缩zip文件的二进制数据(解压缩)

时间:2016-05-26 11:40:14

标签: javascript angularjs

var url = "http://localhost:9996/api/GetZipFile?id=1-1" ;
$.ajax({
    url: url,
    type: 'GET',
    contentType: 'application/json',
    success: function (result) {
        if (result) {
            // reslut is binary data of zip file 
            // how can read(Decompressing) file and get files from this file
        }
    },
    error: function (jqXHR, textStatus, errorThrown) {
        console.log("Falid2");
    }
});

1 个答案:

答案 0 :(得分:0)

尝试使用JS ZIP库这里有一些