rockinaway Posted September 22, 2011 Share Posted September 22, 2011 Is it better to store uploaded images as 'content' in the database? (like here: http://www.techsupportforum.com/forums/f49/tutorial-upload-files-to-database-176804.html).. Or just as a regular file which is referenced in the database..? Quote Link to comment https://forums.phpfreaks.com/topic/247652-uploaded-images-database-or-files/ Share on other sites More sharing options...
the182guy Posted September 22, 2011 Share Posted September 22, 2011 It's usually better to store the filename/path rather than the entire binary data, unless there is any special reason to do it that way. Quote Link to comment https://forums.phpfreaks.com/topic/247652-uploaded-images-database-or-files/#findComment-1271735 Share on other sites More sharing options...
rockinaway Posted September 22, 2011 Author Share Posted September 22, 2011 Okay thanks Quote Link to comment https://forums.phpfreaks.com/topic/247652-uploaded-images-database-or-files/#findComment-1271737 Share on other sites More sharing options...
requinix Posted September 22, 2011 Share Posted September 22, 2011 The only "special reason" I know of to store images in the database is when you're using replication and multiple web/database servers. With that said, IMO there are more advantages to storing them as files. Quote Link to comment https://forums.phpfreaks.com/topic/247652-uploaded-images-database-or-files/#findComment-1271797 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.