Win a copy of Head First Agile this week in the Agile forum!
    Bookmark Topic Watch Topic
  • New Topic

Duplicate File Checking.  RSS feed

 
Biswajit Paria
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,
I am describing the scenario where I have to check the file duplicity.
I upload a file in client site(internet-explorer) and sent to server and again when I upload any file that contain the same date, then at server side some validation should be imposed such that the latter uploaded file can not be processed further.

One solution that I have found is not appropriate.
The solution is as following.
If I generate the hash-key for this uploaded file from One-Way hash Algorithm and store the hash-key in database and next time when I upload any other file I generate hash-key and compare all hash-key stored in database to confirm that no any file (those were uploaded previously) contain the same data.
But it is not appropriate as two different files may generate same hash key.

So any one can please give some suggestion on this issue?

Regards,
Biswajit
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Stan James gave you a good answer in your previous topic. If the answer doesn't make sense, perhaps you should start with the Java Tutorial chapter on Reading and Writing. I'm going to lock this topic since it is a duplicate of your last post on the previous topic. Feel free to continue the discussion on there.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!