PC Review


Reply
Thread Tools Rate Thread

Compression classes

 
 
Robert Scheer
Guest
Posts: n/a
 
      30th Sep 2010
Hi.

I am reading about the compression classes from the .Net Framework but
have some doubts. Maybe you can help me.

What is the difference between compressing a stream and compressing a
file, if any?
The purpose of these compression classes is to work compression like
an Winarj or Winzip application does?

Regards,
Robert Scheer
 
Reply With Quote
 
 
 
 
cubaman
Guest
Posts: n/a
 
      30th Sep 2010
On Sep 30, 3:56*am, Robert Scheer <rbsch...@my-deja.com> wrote:
> Hi.
>
> I am reading about the compression classes from the .Net Framework but
> have some doubts. Maybe you can help me.
>
> What is the difference between compressing a stream and compressing a
> file, if any?
> The purpose of these compression classes is to work compression like
> an Winarj or Winzip application does?
>
> Regards,
> Robert Scheer


I suggest Ionic zip library. Many features, included those missing
in .net implementation, Open source, free and very easy to use.
http://dotnetzip.codeplex.com/

Here is how to create a zip file from files in hard disc:

using (ZipFile zip = new ZipFile())
{
// add this map file into the "images" directory in the zip
archive
zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
// add the report into a different directory in the archive
zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf",
"files");
zip.AddFile("ReadMe.txt");
zip.Save("MyZipFile.zip");
}

Best regards.




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What should I name my business classes given that LINQ data classes takes all table names? Ronald S. Cook Microsoft C# .NET 2 24th Jun 2008 02:57 AM
How i list or enumerate classes (names of classes in string format) from a certain namespace? please help. Jose Michael Meo R. Barrido Microsoft VB .NET 1 31st Dec 2004 12:13 PM
How i list or enumerate classes (names of classes in string format) from a certain namespace? please help. Jose Michael Meo R. Barrido Microsoft Dot NET 1 31st Dec 2004 12:13 PM
hot to differentiate outer classes and nested classes in late binding Daniel Microsoft Dot NET 0 20th Dec 2004 09:53 PM
Managed __value type enums and classes inside __nogc classes Edward Diener Microsoft VC .NET 0 20th Jan 2004 04:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:35 PM.