【问题标题】:How to decompress using JSZip如何使用 JSZip 解压
【发布时间】:2013-02-23 05:19:41
【问题描述】:

我试图将大数据从视图页面发送到控制器,我需要使用一种压缩技术 所以我选择JSZip 来压缩数据,我可以压缩数据,但是我无法在视图页面中使用JSZip 解压缩数据(这里压缩的内容将从控制器返回) 我已经通过JSZip,但我没有找到解压的方法。

我的压缩码:

var zip = new JSZip();
zip.file("temp.txt", JSON.stringify(buffers[0]));
var content = zip.generate({ compression: "DEFLATE" });

// here I'am sending the 'content' to the controller
// and I' am receiving compressed content from controller like 'content' and trying to decompress it.

【问题讨论】:

    标签: javascript encoding zip compression


    【解决方案1】:

    【讨论】:

    • load 用于创建 zip,而不是解压缩。我错了吗?
    猜你喜欢
    • 2021-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多