Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get large binary file's MD5 checksum using VB6

Posted on 2009-07-02
3
Medium Priority
?
1,557 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 1500 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

670 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