This is a discussion on Storing IMages In Databases within the Coding Help forums, part of the Webmaster Discussion category; Hey all, Query, when uploading images to a big site pulling its content from a DB do ye store the ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I think file system for files and database for data. I'd stick with the way you suggested first. Serializing and un-serializing will be a bigger overhead than taking the file from a file system.
__________________ JShopDesigns.co.uk - Custom E-Commerce Design and Development. Personal Blog - Project & Employee time tracking software |
| |||||
| I wouldn't store images in the database, but only the path to the folder. E.G. if I have a product that can have more then 1 image, i create a form for uploading, and a separate db table to store the image name and product id, this way i could have as many images as i want per product. On upload i always rename the images using random letter and numbers to avoid duplicates. To display the images for a product you can use the Join query type making just one call to the db.
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Car Parts & Accessories Car Parts :. Cars Ireland Cars Ireland :. I Have 2 Find It Directory SEF Directory |
| |||||
| I dunno, I store MP3s as blobs in a mysql database and it works well. The actual file in one table and all the metadata in another as the table. File location in the database can get messy I find.
__________________ My Blog |
| |||||
| It depends on the number of images involved and the sizes. Some filesystems have problems with large numbers of files in a directory so they might be an argument for the use of a db. However for most applications, storing the images on the filesystems with the link in the db is the best way. Regards...jmcc |
| Tags |
| databases, images, storing |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for the fastest way to slice hard web images | kara | Webmaster Discussion | 4 | 24-05-2007 07:56 AM |
| Images | wbailey | General Chat | 1 | 15-01-2007 03:46 PM |
| Google Images - Display Method - How is it done? | davidbehan | Coding Help | 10 | 12-01-2007 05:09 PM |
| SEO and Images on your default page | sinead | Search Engine Optimisation | 6 | 05-08-2006 09:33 PM |
| delete images | louie | Coding Help | 7 | 16-03-2006 09:06 PM |
| ||||
| | ![]() | |||
| | ![]() | |||