Ryder389
Ryder389

Reputation: 43

How to save a video in SQLite databse?

I've a written a simple code in Qt using OpenCVwhich records live video from webcam and saves it in .avi file format. I want to know if there's any way to store the same video in SQLite database.

Upvotes: 0

Views: 275

Answers (1)

gbjbaanb
gbjbaanb

Reputation: 52679

Use the blob datatype - but a DB isn't the place to store such large datafiles. Stick the video on disk and put where the file is located in your DB. You'll find accessing it later is a lot easier 9as all the OS operations for streaming expect to find a file on disk to work with).

Upvotes: 2

Related Questions