louis_coetzee Posted August 17, 2009 Share Posted August 17, 2009 Hi guys, please tell me what you think..... $fp = fopen($filename, 'rb') or die("Image '$filename' not found!"); $buf = ''; while(!feof($fp)) $buf .= fgets($fp, 4096); Take $buf to mysql????? or rather just store the image somewhere on the server????? I want to resample image smaller as thumbs. anyway. Link to comment https://forums.phpfreaks.com/topic/170653-good-or-bad-plan-image-bin-to-mysql/ Share on other sites More sharing options...
Lyleyboy Posted August 17, 2009 Share Posted August 17, 2009 I would personally just store the path to the image in the table and store the image in a folder. I've done that several times and it works perfectly. It also means that the DB is smaller as an image would be quite big in the table. Link to comment https://forums.phpfreaks.com/topic/170653-good-or-bad-plan-image-bin-to-mysql/#findComment-900089 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.