【发布时间】: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