Hi,
I am creating an application which migrates all documents from one
repository to another repository. Before migration i have to verify
all the documents are unique. No duplicates has to be uploaded. Event
the document created date, modified date, filename can be different.
How to find the document is duplidate.
What i did is, i created a file and did save as and saved into another
location. I am not able to find that the document is duplicate. I have
tried MD5 hash, CRC check, SHA1. Everything gives different values.
Can anyone give me a solution for this?
Thanks in advance.
Giftson John 4 2648
John,
Well, using a hash is the right way to go, but I don't understand why
everything gives you different values. I mean, if you have no duplicates,
then yes, you SHOULD get different values.
What you have to do is scan the contents of the directory, hashing each
file as you go. You then store the values of the hashes. While scanning
the directory, you check the value of the hash against the list you have
already compiled. If the hash exists in the list, then the two files could
be duplicates (you really have to check both files against each other at
that point byte by byte to see if they are if you want to be completely
accurate).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<gi**********@g mail.comwrote in message
news:11******** *************@n 76g2000hsh.goog legroups.com...
Hi,
I am creating an application which migrates all documents from one
repository to another repository. Before migration i have to verify
all the documents are unique. No duplicates has to be uploaded. Event
the document created date, modified date, filename can be different.
How to find the document is duplidate.
What i did is, i created a file and did save as and saved into another
location. I am not able to find that the document is duplicate. I have
tried MD5 hash, CRC check, SHA1. Everything gives different values.
Can anyone give me a solution for this?
Thanks in advance.
Giftson John
On Apr 19, 7:37 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
John,
Well, using a hash is the right way to go, but I don't understand why
everything gives you different values. I mean, if you have no duplicates,
then yes, you SHOULD get different values.
What you have to do is scan the contents of the directory, hashing each
file as you go. You then store the values of the hashes. While scanning
the directory, you check the value of the hash against the list you have
already compiled. If the hash exists in the list, then the two files could
be duplicates (you really have to check both files against each other at
that point byte by byte to see if they are if you want to be completely
accurate).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om
<giftson.j...@g mail.comwrote in message
news:11******** *************@n 76g2000hsh.goog legroups.com...
Hi,
I am creating an application which migrates all documents from one
repository to another repository. Before migration i have to verify
all the documents are unique. No duplicates has to be uploaded. Event
the document created date, modified date, filename can be different.
How to find the document is duplidate.
What i did is, i created a file and did save as and saved into another
location. I am not able to find that the document is duplicate. I have
tried MD5 hash, CRC check, SHA1. Everything gives different values.
Can anyone give me a solution for this?
Thanks in advance.
Giftson John- Hide quoted text -
- Show quoted text -
Hi Nicholas,
I was bit confused about the MD5 hashing.
Could you please tell me how to compare the contents of Word
Documents. What is happening is MS Word is having some set of Metadata
and even the file contents are same, the metadata difference is giving
different MD5 hash value.
Thanks for your help.
That's the thing, from a file perspective, the files are different
because the metadata is embedded in the file. If you want to check to see
if specific portions of the file are different, then you are going to have
to open the file using word, and then compare word for word, style for
style, etc, etc. Not an easy task.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<gi**********@g mail.comwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
On Apr 19, 7:37 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
>John,
Well, using a hash is the right way to go, but I don't understand why everything gives you different values. I mean, if you have no duplicates, then yes, you SHOULD get different values.
What you have to do is scan the contents of the directory, hashing each file as you go. You then store the values of the hashes. While scanning the directory, you check the value of the hash against the list you have already compiled. If the hash exists in the list, then the two files could be duplicates (you really have to check both files against each other at that point byte by byte to see if they are if you want to be completely accurate).
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - m...@spam.guard .caspershouse.c om
<giftson.j...@ gmail.comwrote in message
news:11******* **************@ n76g2000hsh.goo glegroups.com.. .
Hi,
I am creating an application which migrates all documents from one
repository to another repository. Before migration i have to verify
all the documents are unique. No duplicates has to be uploaded. Event
the document created date, modified date, filename can be different.
How to find the document is duplidate.
What i did is, i created a file and did save as and saved into another
location. I am not able to find that the document is duplicate. I have
tried MD5 hash, CRC check, SHA1. Everything gives different values.
Can anyone give me a solution for this?
Thanks in advance.
Giftson John- Hide quoted text -
- Show quoted text -
Hi Nicholas,
I was bit confused about the MD5 hashing.
Could you please tell me how to compare the contents of Word
Documents. What is happening is MS Word is having some set of Metadata
and even the file contents are same, the metadata difference is giving
different MD5 hash value.
Thanks for your help.
On 19 Apr, 16:17, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
That's the thing, from a file perspective, the files are different
because the metadata is embedded in the file. If you want to check to see
if specific portions of the file are different, then you are going to have
to open the file using word, and then compare word for word, style for
style, etc, etc. Not an easy task.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om
<giftson.j...@g mail.comwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
On Apr 19, 7:37 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
John,
Well, using a hash is the right way to go, but I don't understand why
everything gives you different values. I mean, if you have no
duplicates,
then yes, you SHOULD get different values.
What you have to do is scan the contents of the directory, hashing
each
file as you go. You then store the values of the hashes. While scanning
the directory, you check the value of the hash against the list you have
already compiled. If the hash exists in the list, then the two files
could
be duplicates (you really have to check both files against each other at
that point byte by byte to see if they are if you want to be completely
accurate).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om
<giftson.j...@g mail.comwrote in message
>news:11******* **************@ n76g2000hsh.goo glegroups.com.. .
Hi,
I am creating an application which migrates all documents from one
repository to another repository. Before migration i have to verify
all the documents are unique. No duplicates has to be uploaded. Event
the document created date, modified date, filename can be different.
How to find the document is duplidate.
What i did is, i created a file and did save as and saved into another
location. I am not able to find that the document is duplicate. I have
tried MD5 hash, CRC check, SHA1. Everything gives different values.
Can anyone give me a solution for this?
Thanks in advance.
Giftson John- Hide quoted text -
- Show quoted text -
Hi Nicholas,
I was bit confused about the MD5 hashing.
Could you please tell me how to compare the contents of Word
Documents. What is happening is MS Word is having some set of Metadata
and even the file contents are same, the metadata difference is giving
different MD5 hash value.
Thanks for your help.- Hide quoted text -
- Show quoted text -
A possibly simpler alternative would be to save each file as a text
file and compute the hash on the text files. I say simpler because the
files could be exported in code in a few simple lines. Open file, save
as text, close file, done :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: simon.alexandre |
last post by:
Hi all,
I use csv module included in python 2.3. I use the writer and encouter the
following problem: in my output file (.csv) there is a duplication of the
end of line character, so when I open the csv file in Ms-Excel a blank line
is inserted between each data line.
OS: W2k
Someone has an idea ?
|
by: CJM |
last post by:
In an application I'm working the user has the opportunity to record the
despatching of one or more items with serial numbers.
For each item they despatch, they have to chose the serial no that they want
to despatch from a list of available ones. In many cases, these items will
be of the same time, so the dropdown of available serial no's may be the
same.
So now I need to check that the user hasnt picked the same serial no for two...
|
by: perryche |
last post by:
Experts,
Bascially I want to avoid people entering duplicated records.
However, the check for the duplication are in 2 separate fields. i.e.
Field1 + Field2 can not be duplicated. What's the easiest or best to
do in this case?
I know I can combine the fields in Query, but can I do so in
Tables and check for the dup?
Perry
|
by: Aeden Jameson |
last post by:
Supose you have NLB'd web servers with affinity set to none. A user
fills out a form whose content will be written to a database. Also suppose
the impatient user hits the submit button a second time. My question is,
what do you need to detect the duplication submission?
|
by: Sankar |
last post by:
Dear all,
I am programming in Linux , wherein I need to know a couple of
things.
1) Does an API exist that can copy file onto another file ( an API
equivalent of 'cp') ?
2) Is there an API that tells me the disk usage ( equivalent for
cmdline
| |
by: David Mearsen |
last post by:
Hi,
I've recently started programming C after many years using "the other
language"... I just wanted to find out the common practice for
organising source files.
Specifically, consider a moderately complicated library module, mylib.c.
Obviously its "public interface" (i.e. non-static function
declarations, typedefs, any global variables) need to go in mylib.h.
|
by: sejal17 |
last post by:
hello,
I want to check the duplication of data entry using Ajax.
I have the page below:
cellphone no:textbox1(123) - textbox2(123) - textbox3(4567)
And i have touch screen for entering the no.when i enter the no with touch screen in the last textbox,i want to check that whether that no already exist in the database,if not thaen error message will be displayed.After that checking the next data is displayed that is:
...
|
by: gurmet |
last post by:
Hi All
I have been looking around for help, and finally post this problem.
I created a form to edit a record. Before i can click save button on the edit form i need to check if the data that have been edit exists in the table. But if i m calling the same record and updating the same record without changing anything it should allowed to save.
Example: I m creating a table to save all types of courses (course_id, course_code,...
|
by: sajjad525 |
last post by:
Any one please help me that how we check that the same image in php is not upload on server and image name in database as well or best solution for this duplication
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |