Uploading Image in Databse - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Uploading Image in Databse (/showthread.php?tid=40341) |
Uploading Image in Databse - El Forum - 04-05-2011 [eluser]Unknown[/eluser] How to upload a image in data base through codeigniter Uploading Image in Databse - El Forum - 04-05-2011 [eluser]CroNiX[/eluser] The same as regular php. Have a form to upload it to the server and store it as a blob in the database. Uploading Image in Databse - El Forum - 04-05-2011 [eluser]InsiteFX[/eluser] If you want to store an image in the database you should only store the filename not the whole image. Upload the image to a directory and then store the filename in the database. InsiteFX Uploading Image in Databse - El Forum - 04-05-2011 [eluser]CroNiX[/eluser] BTW, totally agree with InsiteFX. There are several disadvantages and no real advantages to storing images in the db. Such as size/maintainability of database and increased memory needed for the queries carrying the blob data. |