Re: Database with Images?
- Posted by ghaberek (admin) Jun 18, 2009
- 993 views
What I would do is create a separate table for the images. First, run an md5 hash on the image. This will be the image key. Then, run Blowfish encryption on the image data and store that in the database with the key. Now, when you create the records, you can reference the hash key in the record instead of the whole image. This will keep the records smaller (which will load faster) and avoid duplication of data. You could even go so far as to make a simple browser utility to enumerate the image keys, decrypt the data, then display the image with the key.
-Greg