angelali Posted May 23, 2012 Share Posted May 23, 2012 Ok, I just want to know what you think, I have a table with 20 columns where one column will store the images database. The images which are being saved are just thumbnail pics, not exceeding 250px as width and height and also, not exceeding 20KB in size. So what do you think? Should I proceed to store the images in database? Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/ Share on other sites More sharing options...
KevinM1 Posted May 23, 2012 Share Posted May 23, 2012 It's more common to save images in a directory and store their paths in the db. It saves you from needing to mess with headers when displaying them. Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/#findComment-1347918 Share on other sites More sharing options...
angelali Posted May 23, 2012 Author Share Posted May 23, 2012 You dont need headers anymore now to display the image from database... I tried this many times and it works... Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/#findComment-1347919 Share on other sites More sharing options...
Pikachu2000 Posted May 23, 2012 Share Posted May 23, 2012 Please, do elaborate on that. Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/#findComment-1347947 Share on other sites More sharing options...
angelali Posted May 23, 2012 Author Share Posted May 23, 2012 Elaborate on what? The header topic or my question? Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/#findComment-1347948 Share on other sites More sharing options...
Pikachu2000 Posted May 23, 2012 Share Posted May 23, 2012 On not needing headers to display an image. Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/#findComment-1348053 Share on other sites More sharing options...
Jessica Posted May 23, 2012 Share Posted May 23, 2012 Images are files, and should be stored as such. In the filesystem. Quote Link to comment https://forums.phpfreaks.com/topic/262988-storing-images-in-database-or-not/#findComment-1348056 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.