从容器中提取图像的高级过程
是的,这就是问题我有一个容器(rar,zip),其中按顺序包含图像 png 的 tiffs bmps 或 jpegs 。
文件扩展名不是 zip 或 rar,但使用相同的压缩方式。
我想按数字顺序提取文件中包含的图像列表,然后根据用户的决定转到所选的图像。
我不追求任何代码,只是追求如何实现这一点以及如何在 iPhone 操作系统上实现的高级思维过程/逻辑。
据我对 iPhone 操作系统的了解,它使用一种沙箱环境,那么这也会如何影响该过程。
谢谢
Right, this is the problem I have a container (rar,zip) which contains images png's tiffs bmps or jpegs in an order.
The file extension isnt zip or rar though but uses the same compression.
I want to pull out a list of images contained within the file in the numerical order, then depending on the user decision go to the image selected.
I'm not after any code just the high level thought process/logic of how this can be achieved and how it could be achieved on iphone OS.
From what i know of iphone OS it uses a kind of sandbox environment so how would this effect the process as well.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在项目中包含
libz
框架并编写一些 C 语言来管理压缩数据。或者您可以使用其他人编写的 Objective-C 包装类。您的应用程序驻留在其自己的沙箱中。您可以将 zip 文件包含在“捆绑包”中,即将它们添加到您的项目中,并将它们复制到应用程序的 文档文件夹以使用它们。或者,如果您不想在项目中包含文件,则可以通过网络将存档数据复制到应用程序的文档文件夹。
我认为扩展名并不重要,重要的是数据采用您期望的格式。
我上面写的所有内容都是针对压缩文件的。如果您正在使用 rar 格式的档案,则需要考虑为 iPhone 制作静态库,可能来自 UnRAR 源代码。
You can include the
libz
framework in your project and write some C to manage zipped data. Or you can use Objective-C wrapper classes others have written.Your application resides in its own sandbox. You can include zip files in the "bundle", i.e. add them to your project, and copy them to the application's Documents folder to work with them. Or you can copy archived data over the network to the application's Documents folder if you don't want to include files in your project.
I don't think the extension matters so much as the data being in the format you expect it to be.
Everything I wrote above is for zip-ped files. If you're working with rar-formatted archives, you'll need to look at making a static library for the iPhone, perhaps from the UnRAR source code.