Depending on what the OP is asking for, checking the first 16K of the file won't provide the correct answer if a) the OP is trying to determine are the images the same (rather than just are the files identical) and b) the files are in different formats (say, JPG and BMP) but are actually the same image.
Update Oops -- ikegami is quite right, the loop checks the entire file, not just the first 16K.
In reply to Re^2: Fast way to compare two picture-files
by talexb
in thread Fast way to compare two picture-files
by michbach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |