The OP will be using a handler or "script" to serve up the image irrespective of if its in the database or a central file server. It therefore can check for hot linking irrespective of the where the image is stored.Your script can look at the HTTP_REFERER (sic) header to make sure your image is not being linked to from another page. But if you are using Apache you can let the web server do this in mod_rewrite.
If you even look at Microsofts own solutions built around SQL server (eg SharePoint 2010) it stores the files themselves in normal disk space and the SQL simply holds the meta data and the location of the file(s).
I'm also slightly confused and worried about people thinking that a file system is difficult to back up!
Whilst a single image wouldn't be a massive load it could very quickly add up. Ebay has been mentioned by someone else in the chain so if you take that as a model. On every page served you have 100 images that are each individually being pulled from the db. Then you get 30 concurrent users and you then have 3000*64kb images being pulled from blobs in the SQL.In this scenario the processing overheads involved retrieving a few smallish (64kb) images (per request) from the DB shouldn't be of much concern.
Last edited:
Upvote
0