Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1585
  • Last Modified:

Get large binary file's MD5 checksum using VB6

How can I get the MD5 checksum of a Binary file, could you please provide the code and would really appreciate if this is not a DLL in VB6.
There are examples in Internet but only from strings and I need for large binaries files.
If a binary file is open like string, the String Doesn't Store Some Characters.

Examples of strings:
http://www.frez.co.uk/freecode.htm#md5
http://www.eggheadcafe.com/community/aspnet/8/11575/this-code-was-put-out-by.aspx


0
jotache
Asked:
jotache
  • 2
1 Solution
 
advfinanceCommented:
We've used this ActiveX DLL to do the same thing - It works fast and is very easy to use:

http://xstandard.com/en/documentation/xmd5/

Cheers
0
 
jotacheAuthor Commented:
I know there are many dll's but I need the code in Visual Basic 6, Thank You.
0
 
advfinanceCommented:
From experience, it can be done in VB6, but when I tried this on a dual-core 3Ghz machine with 2GB ram, it's so slow it's unusable from a practical point of view. I was using it on MP3s which are recorded calls, and were 2Mb or less.

Still, have a look at this - It contains a function you can pass a filename to, and then pass the resulting string to the function to create the MD5:

http://www.bullzip.com/md5/vb/md5-vb-class.htm

Unless this bit of code's changed since I first looked at it, using a DLL (at least one not written with VB) is faster.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now