For a long time I was looking for a way to store a large number of images in HTML5 or access them locally and display them.
The application is an ordering and catalog of goods, for example, an e-commerce website, but for bulk orders, and not for end customers, each image is a product, so you need to have 40 thousand images. The need comes from the requirement that the seller can use the tablet offline for several days, weeks and only synchronize with ERP when he has a connection or wants to synchronize.
Each seller has a special Tegra3 Quad-Core, 32Gb Android tablet for the application. But the app also supports iPad and Chrome on the desktop.
However, I encountered the following limitations:
- Use html5 offline (application cache). This is limited on iOS devices to 50 MB, and it is difficult to manage the manifest file.
- Use a webSQL database with base64 encoded images. The same size limit (50 MB).
- Use localCache with base64, again, size limits (5 to 10 MB).
- Convert my HTML5 application to use the PhoneGap file API, but then I will lose desktop support for Windows PCs and some problems with web services.
So maybe I am missing an alternative way to do this?
Is there an HTML5 way to store a large number of images for offline viewing? The FileSystem API is not supported on mobile devices, and the ability to work on mobile devices is a serious requirement.
source share