Read picture dir and store pics to Mysql
View Single Post
05-26-2010, 10:14 AM
Join Date: Oct 2007
Location: Manchester, UK
Originally Posted by
It's doable, but the filesystem is far faster.
I would just store the URL in the database. That is as simple as an insert statement in a varchar field.
I agree, let the web server do what its good at and let mysql do what its good at.
If you insist on this method, look into the Mysql BLOB type.
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
View Public Profile
Send a private message to sketchMedia
Visit sketchMedia's homepage!
Find More Posts by sketchMedia