I think what the respondents are trying to say that your question is out of scope here. You need a PhP tutorial on sqlite use, and clearly the usual suspects nor me can help you there. It is certainly possible to store an image as a blob. The first duckduck for "call sqlite from php blob": https://www.sqlitetutorial.net/sqlite-php/blob/