Solved

Get large binary file's MD5 checksum using VB6

Posted on 2009-07-02
3
1,518 Views
Last Modified: 2012-05-07
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
Comment
Question by:jotache
  • 2
3 Comments
 
LVL 5

Expert Comment

by:advfinance
ID: 24764952
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
 

Author Comment

by:jotache
ID: 24765308
I know there are many dll's but I need the code in Visual Basic 6, Thank You.
0
 
LVL 5

Accepted Solution

by:
advfinance earned 500 total points
ID: 24783369
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question