let resourceUrl = "http://localhost:9996/api/GetZipFile?id=1-1" ;
$.ajax({
url: resourceUrl,
type: 'GET',
contentType: 'application/json',
success: function (data) {
if (data) {
// The 'data' variable contains binary zip file data
// How can we decompress this file and extract its contents?
}
},
error: function (jqXHR, textStatus, errorThrown) {
console.log("Failed to fetch resource");
}
});