簡體   English   中英

我想在javascripte中解壓縮zip文件的二進制數據(解壓縮)

[英]I want to unzip a binary data of zip file in javascripte (Decompressing)

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");
    }
});

嘗試使用JS ZIP庫,這里有一些

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM