As an alternative to storing images in the IndexedDB, it would also be possible to accept an URL to the image and use that to display the image. This requires less storage, but might result in problems later should the image get removed at its source location.
As an alternative to storing images in the IndexedDB, it would also be possible to accept an URL to the image and use that to display the image. This requires less storage, but might result in problems later should the image get removed at its source location.