If api response is zipForm then how to download or extract this zip response to csv file in react js

Tried this button empty zip archive:

let blob = new Blob([data],{type: "text/plain"});
         saveAs(blob,'abc.zip')

Tried this but no csv file there there is zip file data coming as like as response

const zipData = res.data;
console.log(zipData);
zip.file("res.edi", res.data);

zip.generateAsync({type:"blob"})
           .then(function(content){
             saveAs(content, "example.zip");
           })

Please help me with this



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)