TGWSE_GY Posted April 22, 2009 Share Posted April 22, 2009 Hi Guys, My question is, what is better option A) Store the users image in a column in a mysql database using BLOB or option B) Save their image to a directory and store the image name in the database. Or if someone knows an even better way than these two options please let me know. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/155201-solved-storing-images-which-is-best/ Share on other sites More sharing options...
mrMarcus Posted April 22, 2009 Share Posted April 22, 2009 i pick B. Quote Link to comment https://forums.phpfreaks.com/topic/155201-solved-storing-images-which-is-best/#findComment-816497 Share on other sites More sharing options...
TGWSE_GY Posted April 22, 2009 Author Share Posted April 22, 2009 But doesn't that pose a security risk? Just asking because security is high on our priority list Quote Link to comment https://forums.phpfreaks.com/topic/155201-solved-storing-images-which-is-best/#findComment-816576 Share on other sites More sharing options...
Daniel0 Posted April 22, 2009 Share Posted April 22, 2009 It's only a security risk if you allow random people access to the filesystem. You would obviously store such files above the document root. Quote Link to comment https://forums.phpfreaks.com/topic/155201-solved-storing-images-which-is-best/#findComment-816864 Share on other sites More sharing options...
TGWSE_GY Posted April 23, 2009 Author Share Posted April 23, 2009 Ok guys thanks for the help! ;D ;D ;D ;D ;D Quote Link to comment https://forums.phpfreaks.com/topic/155201-solved-storing-images-which-is-best/#findComment-817605 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.