I searched quiet around the internet and cannot found an solution. What I'm currently using is get the file contents and then use base64_encode to store them in database. But that just blows the size up. I saw that the firefox database (places.sqlite) store the favicons directly in database. I searched around and cannot found a doc how they do this.
Some days ago I found the following code: $image_handle = fopen($file,"rb"); $image = addslashes(fread($image_handle,filesize($file))); but this doesn't work, because I get the "unrecognized token" error at the very first line of the image. My current code: $image = base64_encode(file_get_contents($file)); makes it bigger than I need it. I'm trying to get a smaller filesize than a program who use one file per folder for thumbnails. And with no search function on the user list, it's a pain to go through all the months. (nothing found anyways) With best wishes Artur Reilin sqlite.yuedream.de _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users