Hi all,

I need a md5 sum of a file with a big size. I found this:

Qt Code:
  1. QFile file("/home/chris/backup.img");
  2.  
  3. if (file.open(QIODevice::ReadOnly)) {
  4. QByteArray fileData = file.readAll();
  5. QByteArray hashData = QCryptographicHash::hash(fileData, QCryptographicHash::Md5);
  6.  
  7. qDebug() << hashData.toHex();
  8. }
To copy to clipboard, switch view to plain text mode 

but with a file size > 8 GB it's a memory overkill!

Are there any other methods?

Thanks!
Chris