Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

How to compress files and data in VB.net

Total Hit ( 3677)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


"Compressing files and data",


http://dotnet.mvps.org/dotnet/faqs/?id=compression&lang=en




Compressing files and data

CAB format:

Microsoft Cabinet Software Development Kit


http://support.microsoft.com/?scid=kb;EN-US;310618




You can build CAB files using the Windows' "MAKECAB.EXE" utility.  For

extracting CAB files, you can use Microsoft's "EXTRACT.EXE", which is

available on the Windows XP CD or as part of the Windows XP Support Tools:



Windows XP Service Pack 2 Support Tools


http://www.microsoft.com/downloads/details.aspx?familyid=49ae8576-9bb9-4126-9761-ba8011fabf38




Alternatively you can use p/invoke with 'SetupIterateCabinet'.  A VB6

sample can be found here:



View and Extract CAB File Contents Programmatically


http://www.thescarms.com/vbasic/CabExplorer.asp




ZIP format and other archive formats:



Using J#'s ZIP functionality:



Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#



http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/


.NET 2.0 contains ZIP support too in the namespace System.IO.Compression

The Zip, GZip, BZip2 and Tar Implementation For .NET


http://www.icsharpcode.net/OpenSource/SharpZipLib/


zlib Home Site

http://www.gzip.org/zlib/

 


The Visual Basic .NET Resource Kit contains zipping functionality too. Note

that the resource kit is not available any more:

The Visual Basic .NET Resource Kit


http://msdn.microsoft.com/vbasic/vbrkit/


ZIP components contained in the resoure kit:

ComponentOne Zip™ for .NET


http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14&ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabID=70



Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.