In your mySQL database, create a table for loading images, create an identifier column set to AUTO_INCREMENT , INT (integer) and make it PKEY (primary key).
This means that your identifier is always automatically created and generated when new content is added and is always unique regardless of whether the same image is added as many times as necessary.
Then additional fields can capture other information about the image (file name, "given" name, file size, file type and BLOB field for the image itself), you can also add the psuedo identifier, which you compose based on any combination of factors ... you consider it necessary.
SW4 Nov 09 '10 at 12:27 2010-11-09 12:27
source share