Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compare 2 JPG files in code?
Message
De
29/06/2010 12:26:19
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01470953
Message ID:
01470970
Vues:
53
Hi Sergey,

I tried the HASHFILE() approach, but, it also says the files are different even though I just "changed" one by simply saving it without actually making any edits to it.

BTW, I used a SHA256 in my testing.

Mike


>I would use HASHFILE() function from VFP Encryption FLL
>
>>Does anyone know if and how to compare two JPG photos using code?
>>
>>I tried filetostr() and while it seemed to work I found that it fails for the following set of commands:
>>
>>r = filetostr(path to photo 1)
>>copy photo 1 to photo 2
>>open photo 2 in a graphic editor (paint will do). Don't make any changes and save it.
>>s = filetostr(path to photo 2)
>>wait window r==s returns false!!!
>>
>>Simply changing re-saving the second photo was enough to make it different.
>>
>>As always, any assistance is greatly appreciated.
>>
>>TIA,
>>Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform