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? 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. 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... 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. 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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.