Use SQLite in a NativeScript Angular 2 Mobile App - Nic Raboy


#1

Learn how to use a SQLite database to store your data in a NativeScript app built with Angular 2.


#2

how can i store images and videos in sqlite database


#3

pinging Nic, @nraboy please?


#4

Why would you store them in the db rather than storing a resource identifier to the image?


#5

@sp1966 would that be better ?
coz am building a social app and users will be able to upload videos too


#6

Responded via the article comments.

I agree with @SP1966, you should probably only be storing the resource identifier and any meta data in your database, not the image or video.


#7

The database is going to grow quickly and become less efficient by the day storing that kind of data. Back ups are going to be insane!

Whatever you do, good luck!