Check for same image
Hi all,
I'm writing an application that can let user import images and move them around. When the user press save, the used image should be saved under a directory. My problem is, when the user press a second time, the saved images should not be saved again, how I know if it is the same image?
Currently the copy image is done by FileImageInputStream and FileImageOutputStream, so the new file has got different file name and date modified. The common part would be the length, but different images can save same length too.
I don't want to read the file into image object, as the process is quite costy (and image class doesn't provide equal check anyway). The whole purpose of this is to cut the repeated saving process faster. I don't mind suggestions of different solutions too.
Thanks in advance,
Icycool

