Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checksum for Image comparison

 
Gupta Nitin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the checksum method of image comparison and how do i do it in Java?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure what you're getting at, but generating a checksum of a file (image or otherwise) would involve calculating the sum of all bytes in that file. If you do that for two files, chances are good that the files will be identical if the checksums are identical. Wikipedia has more to say on the subject.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic