I don't have any working code and this is not the place to discuss it. A web search for <code>"PHP sqlite database store image file tutorial"</code> returns quite a few examples. Many are about MySQL, but the mechanisms are mostly the same. A PHP forum or usenet group would be a better place to ask.