如何使用适用于 Windows、OSX、iPhone 的 iOS 创建多个文档的单文件格式
我正在开发一个最终用户应用程序,该应用程序将创建其中可能包含多个文件的文档。
主要资源是sqlite数据库。用户可以存储从该数据库引用的多个媒体文件。
我的第一个冲动是使用 OSX Bundles,但这会显示是 Windows 上的文件夹。
或者将所有数据放入sqlite数据库中,但在尝试打开大文件时会出现问题。
或者可能在 zip 文件内但需要压缩/解压缩。
或者也许存在一个魔术,可以将文件夹显示为窗口下的文件...
是否存在适用于 iOS 的工作 VFS(虚拟文件系统)?
I'm working in a end-user app that will create documents that could have several files inside it.
The main resource is a sqlite database. The user can store several media files that are referenced form that database.
My first impulse is use OSX Bundles, but that will show that are folders on windows.
Or put all the data inside the sqlite database, but will have issues when try to open large files.
Or maybe inside a zip file but need to compress/decompress.
Or maybe exist a magic trick to show a folder as a file under window...
Exist a working VFS (virtual file system) for iOS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会选择众所周知的归档格式,例如 zip 或 tar,因为我确信有预制的库供您使用。顺便说一句,ZIP 格式也允许您存储不压缩的文件。
I'd go for a well-known archiving format such as zip or tar, because I'm sure there are pre-made libraries for those that you can use. By the way, the ZIP format allows you to store files without compression as well.
是的,您可以使用我们的 SolFS 应用程序版本,这正是您正在寻找的并且可以用于iOS 以及所有其他主要平台。
ZIP 存在修改无效的问题——速度慢且消耗资源。
Yes, you can use our SolFS Application Edition, this is exactly what you are looking for and it's available for iOS as well as all other major platforms.
ZIP has the problem of ineffective modification - it's slow and resource-consuming.