html5存储大于50 mb的数据? [英] html5 to store greater than 50 mb worth of data?

查看:172
本文介绍了html5存储大于50 mb的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个必须在黑莓,iPhone和Android手机上运行的移动应用程序。我在HTML5,CSS和JQuery Mobile中构建此移动应用程序。然后我将使用PhoneGap来允许代码作为手机的本地移动应用程序运行。移动应用程序必须能够在无需连接到互联网的情况下工作。应用程序必须要求互联网连接的唯一时间是第一次加载时,因为这是应用程序将下载超过50 MB的数据。下次应用程序具有互联网连接时,它会轮询服务器以获取最近的数据。

I am building a mobile app that must work in Blackberry, iPhone and Android phones. I am building this mobile app in HTML5, CSS and JQuery Mobile. Then I will use PhoneGap to allow the code to run as a native mobile app for the phone. The mobile app must be able to work without connection to the internet. The only time the app must require an internet connection is when it loads for the first time, because that's when the app will download over 50 MB worth of data. Next time the app has internet connectivity, it will poll the server for more recent data to consume.

我的问题在于我在哪里存储50 mb当网络连接存在时可以更新的数据

其他注意事项

其他人不鼓励使用Web SQL数据库,因为规范不再处于活动维护中。我读过,localStorage和缓存清单的存储限制大约3-5 mb,具体取决于浏览器。从经验来看,我遇到了很多挑战使用PhoneGap API创建一组代码,将可靠地写入所有以下文件系统:ios,bb,android。

I've been discouraged by others to use Web SQL Database because the specification is no longer in active maintenance. I've read that localStorage and cache manifest has a storage limit of about 3-5 mb depending on the browser. From experience, I've encountered a lot of challenges working with the PhoneGap API to create one set of code that will reliably write to all of the following file systems: ios, bb, android.

推荐答案

根据您的需要:(存储10,000图像,10,000个pdf,+视频等)我不认为一个轻量级HTML5应用程序将适合您的需求。

Based on your needs: (store 10,000 images, 10,000 pdfs, +videos etc.) I don't think a "lightweight" HTML5 application is going to suit your needs.

我认为原生应用程序可能会工作得更好,你有适当的文件系统访问来存储文件在设备上的需要(甚至构建他们更好)。

I think that a native application is likely going to work much better where you have proper filesystem access to store the files on the device as needed (and even structure them better).

HTML5 localStorage(5mb)和WebSQL(SQLLite)(5mb-〜50mb)数据库选项真的不会给你所需要的可以告诉。

The HTML5 localStorage (5mb) and the WebSQL (SQLLite) (5mb-~50mb) database options really won't give you what you need as far as I can tell.

WebApp包装器如 PhoneGap WebWorks (BlackBerry)将为您提供所需的文件系统访问权限,但我不确定其中的任何一个是否有限制,您可能会遇到大小/数量明显...希望有人在这些包装框架的经验表示他们遇到的任何大小限制。

WebApp "wrappers" like PhoneGap and WebWorks (for BlackBerry) will give you the filesystem access you need, but I'm not sure if either of them have limitations that you'll hit size/quantity wise... hopefully someone with experience in these wrapper frameworks can indicate any size limits they've encountered.

这篇关于html5存储大于50 mb的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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