Solved

Get large binary file's MD5 checksum using VB6

Posted on 2009-07-02
3
1,540 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

617 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