Fast recognize big file [Resolved]
Posted: Mon Jul 11, 2022 3:30 pm
Bonjour at all
I have a big list of files (Like everyone you will say to me
)
I want quicky recognize each one, without use his names
For that, i surely patch it with splendid code INFRATEC and MIJIKAÏ give to me
, but when even i have searched to recognize it without the patch for have one more security.
I say to me it's easy, i add the maximum of informations who never changing about each file in a sentence, example : "size+Extension+#PB_Date_Created+Size image (if it's a movie)
And i'm surprising, because event with all this informations in a sentence, there are numerous duplicate
So never mind, i say to me with a fingerprint of 10 000 bits of the beginning, the problem is surely done
....no duplicate
After i say i can read the file, and take a list of bits in HEXA and do a sentence with it....duplicate
The first time, i have take 100 bits at the begining, and always numerous duplicate
After i try to read a bit all the 20 000 bits and adding the HEXA in one sentence,
but duplicate again
And the worst, if i add the sentence of information of the begining + the sentence of bits or fingerprint, it's always the same resul..dupicate, duplicate, duplicate
Obviously, i have also try to create a fingerprint of all the file, but for the with 1GO
This time ...

Then if you have an idea for create a unique key with each file, or create and read a fingerprint relatively quickly...

i would be really interested
Have a good day
I have a big list of files (Like everyone you will say to me

I want quicky recognize each one, without use his names
For that, i surely patch it with splendid code INFRATEC and MIJIKAÏ give to me

I say to me it's easy, i add the maximum of informations who never changing about each file in a sentence, example : "size+Extension+#PB_Date_Created+Size image (if it's a movie)
And i'm surprising, because event with all this informations in a sentence, there are numerous duplicate

So never mind, i say to me with a fingerprint of 10 000 bits of the beginning, the problem is surely done


After i say i can read the file, and take a list of bits in HEXA and do a sentence with it....duplicate

The first time, i have take 100 bits at the begining, and always numerous duplicate

After i try to read a bit all the 20 000 bits and adding the HEXA in one sentence,
Code: Select all
Canal = ReadFile(#PB_Any, Fichier$)
If Canal
TailleFichier.l = FileSize(Fichier$)
TailleSaut = Int(TailleFichier / 30)
PhraseHexa$ = ""
For b = 100000 To TailleFichier
b + TailleSaut
If b <= TailleFichier
FileSeek(Canal, b)
Bit = ReadByte(Canal)
Hexa$ = Right(Hex(Bit), 2)
PhraseHexa$ + Hexa$
EndIf
Next
WriteStringN(CanalLog, Fichier$ + "|" + PhraseHexa$, #PB_UTF8)
CloseFile(Canal)
Delay(30)

And the worst, if i add the sentence of information of the begining + the sentence of bits or fingerprint, it's always the same resul..dupicate, duplicate, duplicate

Obviously, i have also try to create a fingerprint of all the file, but for the with 1GO
This time ...

Then if you have an idea for create a unique key with each file, or create and read a fingerprint relatively quickly...

i would be really interested
Have a good day