Exporting SQLite blob data from standalone SQLite database using command line tools
Description and steps on how to export binary/blob data from a SQLite database using sqlite command line tools.
$ sudo apt install sqlite3sqlite3 testdb.db "SELECT key from photo" | while read id; do echo SELECT writefile\(\'export-key-$id.jpg\', photodata\) FROM photo WHERE key = $id\;; done | sqlite3 testdb.db
Last updated