压缩iPhone应用程序沙箱中的Document文件夹

发布于 2024-09-10 23:13:26 字数 170 浏览 1 评论 0原文

我需要压缩应用程序沙箱中的Documents文件夹并将压缩文件上传到服务器。我已经能够将文件从 iphone 发送到服务器,但在压缩文件夹方面遇到了困难。我正在使用 ASIHTTPRequest 库连接到服务器。

任何机构都可以为我指明正确的方向。我将不胜感激。

预先感谢

尼克

I need to compress the Documents folder in the application sandbox and upload the compressed file to a server. I've been able to send files from iphone to the server, but am stuck in regards to compressing the folder. I'm using the ASIHTTPRequest libraries for connecting to the server.

Any body can point me to the right direction. I'd be highly grateful.

Thanks in advance

Nik

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夕嗳→ 2024-09-17 23:13:26

您无法更改文档文件夹本身,因为您没有权限。但是,您可以压缩其中的文件。我非常确定您可以使用命令行 zlib 进行实际压缩。使用 NSTask 从应用程序代码中运行它。

You can't alter the Documents folder itself because you don't have permission. However, you can compress files inside it. I pretty sure you can use the command line zlib to do the actual compression. Use NSTask to run it from the apps code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文