Skip to content Skip to sidebar Skip to footer

Save A Video In Local Storage

Atm I'm saving simple strings in local storage. But the problem is now I want to save videos/images to local storage. But since localStorage only supports strings I don't see how t

Solution 1:

https://github.com/ninjatronic/angular-base64

Use something like this to convert the image to base64 as CodeCaster said. But it's a bad idea, and you may run out of space and it won't work anyways. If I remember correctly (double check) but it's 10mb per localstorage so a video won't save there (tiny low quality video maybe).

Why don't you use a local db temporarily?

Post a Comment for "Save A Video In Local Storage"