Best option for storing many image files locally?

In my Ionic 3 PWA, the user can take many photos (while offline). I’m successfully capturing the image data (as a base64-encoded string). Once they’re back online, they can tap a button to upload the photos to the server.

My question: what’s the best way to store this image data locally, until the user is ready to upload? I’m using IndexedDB to store other local data, but it doesn’t seem like a good option for large binaries.

ETA: if there’s a suitable API that’s only supported by particular browsers, I can require my users to install the PWA via that browser. I’ve already decided that I’ll need to require Android (for separate reasons).

It looks like the FileSystem API is (probably) my best bet. It’s no longer on a standards track, but it’s supported in Chrome.

1 Like