I want to import pictures from the photo library on iOS but I want to check that I haven't already done so in the past.
What can I use as a unique identifier to check for?
What I thought so far are these:
- Created Date ( This might have a low probability of conflict, might have pictures taken at the same time or saved at the same time by iphoto)
- Pictures filesize (Depending on how accurate I can get this number)
- A combination of the two?
- Exif Data? (Works well for pictures taken but what if you have images with no Exif?)
What are you using?
Thanks
Something I used when I had a problem like this was the MD5-Hash of the combination of date (in this case unix timestamp) and filename. I think this should be unique.