emptygif
Language: English

All languages and frameworks

SQLite CLI SQL

A SQL snippet for SQLite CLI that answers requests for /pixel.gif with the empty GIF, decoded once at startup.

SQLite CLI SQL

File
pixel.sh
# base64() and writefile() are extensions built into the sqlite3 shell, not core SQLite.
sqlite3 :memory: "SELECT writefile('pixel.gif', base64('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='));"

We ran this snippet and compared the bytes it returned.

Official site: SQLite CLI

More in SQL