zipEntries.js?4c22:149 Uncaught Error: Can't find end of central directory : is this a zip file ? If it is
See original GitHub issue使用axios请求一个express的静态文件地址,请求结果是blob类型,然后使用 filereader 读取blob中的buffer,然后就报错了
this.axios({
method: "get",
url: "http://127.0.0.1:3000/demo文档.doc",
responseType: "blob"
}).then(r => {
let res = r.data;
let file = new FileReader();
file.onload = function(e){
let buffer = e.target.result;
mammoth.convertToHtml({arrayBuffer:buffer}).then(r=>{
console.log(r);
}).done();
}
file.readAsArrayBuffer(res);
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error: Corrupted zip : can't find end of central directory #35
I am trying to use this library to parse a base64 encoded .xslx file on the server using node.js. I have also removing...
Read more >XLSX Populate: "Error: Can't find end of central directory
My code consists in a Reader for Templates .XSLX files and then populate using data from a Firecloud Database. Code: exportData() { var ......
Read more >How to Fix Unzip Error “End-of-central-directory signature not ...
Rarely, you may attempt to unzip a zip archive and come across an error that states “End-of-central-directory signature not found.
Read more >Can't find end of central directory : is this a zip file (#3) · Issues
when reading file inside electron===(node environment), I used the path to the file as indicated in the documentation.
Read more >unzip error "End-of-central-directory signature not found"
Try this excellent solution: jar xvf COCR2_100.zip. steps: drag and drop file into terminal window. use keyboard arrows to navigate to start of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It looks like you’re trying to use a .doc file, which isn’t supported.
Only support .docx, use .doc will report this error.