Thread: multiple copies
View Single Post
Old 12-18-2009, 03:21 AM   #8
cklammer
Zealot
cklammer has a complete set of Star Wars action figures.cklammer has a complete set of Star Wars action figures.cklammer has a complete set of Star Wars action figures.cklammer has a complete set of Star Wars action figures.cklammer has a complete set of Star Wars action figures.
 
cklammer's Avatar
 
Posts: 106
Karma: 450
Join Date: Feb 2009
Location: Abu Dhabi, United Arab Emirates
Device: Palm Centro, Acer Aspire One
Quote:
Originally Posted by mikelv View Post
What do other people think about that solution? Any other ideas?

Michael
Calculate for each every epub file a CRC32 checksum and store it and the file size of the epub file directly after download. Now when you download a new epub you just need to compare tboth he CRC32 and filesize of the new epub with your database records. If you find a match than it is very, very, very likely that one or more of the epubfiles in the collection and the newly downloaded epubfile are identical then you just have to act accordingly (warn the user or whatever).
cklammer is offline   Reply With Quote