在flex中提取zip文件 [英] Extract zip file in flex

查看:142
本文介绍了在flex中提取zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有任何方法来提取zip文件,并保持输出文件夹中相同的文件夹结构。我能够提取zip文件及其内部文件,但不能从zip文件中提取文件夹,从而无法维护文件夹结构也是如此。

解决方案

是的。它允许您读取和写入zip文件中的数据,演示还显示可以看到文件夹结构。



http://www.nochump.com/blog/?p=15



我自己并没有使用这个组件,但是如果我正确地假设你正在创建一个AIR应用程序,那么这个组件可能会自动生成文件夹,否则你可以使用文件系统API来自己创建正确的文件夹。

祝您好运!

Is there any method to extract zip files and maintain the same folder structure in the output folder.I am able to extract the zip file and its inner files but not able to extract folder from a zip file and thus fail to maintain folder structure also.

解决方案

Yes.

There is an AS3 component that allows you to read and write data from zip files, and the demo also shows that it is possible to see the folder structure.

http://www.nochump.com/blog/?p=15

I have not used this component myself, but if I am correct in assuming that you are making an AIR application then this component may automatically generate folders, otherwise you can use the file system api to create the correct folders yourself.

Good Luck!

这篇关于在flex中提取zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆