What is the best way to store a very large image for an iOS application? I want the application to be able to view images, which can be hundreds of megabytes, possibly up to a gigabyte like jpeg. I need to be able to save an image and extract selected areas for display.
Currently, images are cut into 512x512 pixel tiles and saved as jpeg files in a directory tree with tens of thousands of fragments (this is actually a pyramid of images, including thumbnails).
Ignoring the issue of displaying an image, Iβm interested in the most efficient and manageable way to store this data on the device: files, as they currently are, in the sqlite database or something else?
The second part of the question. Is there a limit on the amount of data that the application can store, or whether the application can store data to the storage limit of the device. I ask here about the data that the application imports after installing it.
source share