Last post Jan 19, 2007 08:09 PM by John Hoge
Jan 15, 2007 05:12 PM|John Hoge|LINK
I have a site where users can upload images, and I want to check to make sure that the same image is not uploaded twice.
I was thinking about adding up the total value of the bytes that have composed the image, but wanted to see if there was a more standard approach.
Jan 16, 2007 03:54 AM|michiel1978|LINK
it may be better to create a hash (like MD5 or SHA) from the bytes of the image and compare the hash.
Jan 19, 2007 08:09 PM|John Hoge|LINK
Thanks for the tip. The MD5 worked like a charm.