Solved

File compression

Posted on 1999-01-25
4
197 Views
Last Modified: 2010-05-03
Anyone know of any VB algorithms or code snipits that can considerably compress/restore a large file (the smaller and faster it is, the better)?  I am making a prgram that will eventually be creating some pretty heafty files so any help would be appreciated.  Thanx.
0
Comment
Question by:zabman
4 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1470718
Waty asks this question a while ago and the only thing he got was some pointers.
There is no fast way to compress in VB because of a lack of bit manupulation functions.

Here is a good control that does it
http://www.cgvb.com/links/lpage.boa/FILE
0
 
LVL 14

Expert Comment

by:waty
ID: 1470719
The only solution under vvb, is using 3rd OCX/DLL, of shelling to PKZip. For none of those solutions was acceptable.
0
 
LVL 4

Accepted Solution

by:
anzen earned 100 total points
ID: 1470720
Such a code snippet is difficult to post here, but If You want to use or study some really good compression code i suggest You to jump to this URL http://www.winimage.com/zLibDll/ there You'll find the Win DLL version of a compression library called Zlib (bin and sources) together with a working VB module to use it from Visual Basic, the library uses Huffmann, LZW and RLE algos to accomplish the max compression it can and I've found it really useful and well written

I Hope this helps ...

Bye

0
 

Author Comment

by:zabman
ID: 1470721
Thanks for the help!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now