Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello I have 2 folders on the desktop.
File 1 and file 2.
I want to check if the pictures in these files are equal or different.
How do I check?

For example

File1:
A.jpg
B.jpg
C.jpg

File2:
B.jpg
C.jpg


I want to result: A jpg

What I have tried:

How to compare two folder and find different value.
Posted
Updated 15-Oct-19 2:48am
Comments
Maciej Los 14-Oct-19 3:15am    
What you mean by "check if the pictures in these files are equal or different"?
Can you provide more details about files comparision? What kind of property(ies) you want to compare?
Member 14169626 14-Oct-19 3:49am    
no image with no name which one is different which one you want to check it
Richard MacCutchan 14-Oct-19 6:11am    
Try just a simple binary compare of the content.

1 solution

Here is a simple way that uses File.ReadAllBytes(), if you have large files however this is not the most efficient way: https://www.dotnetperls.com/file-equals[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900