2016-05-26 18 views
-1
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"); 
    } 
}); 
+0

見つけたのさ? – Faraz

答えて

0

は、ここでJSのZIPライブラリを使用してみてください、あなたはすべてのソリューションをいくつか

+0

'$ .ajax'やバイナリの内容にも注意してください。例えば、[here](https://stackoverflow.com/a/37197919/1992669)を参照してください。 –

関連する問題