Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Duplicate File Checking.

Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Posts: 9626
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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