PC Review


Reply
Thread Tools Rate Thread

How can I zip a file in code?

 
 
zippy
Guest
Posts: n/a
 
      22nd Mar 2005
In my code I create and save a file. I would like to be
able to zip that file. I've looked online and it seems
that there are no zip classes built in to .Net for C#.

How can i zip a file then? It seems there are free zip
libraries about. Is this only way?

What's a recommeded zip library to use, with easy to
follow documentation?
I've looked around and it looks like there's lots of
files to download and its not immediately clear how to go
about the simple process of zipping a file in code.

help!
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      22nd Mar 2005
Zippy,

Recommended by who?

I use this one, however there are more.
http://www.gzip.org/zlib/

I hope this helps,

Cor


 
Reply With Quote
 
zippy
Guest
Posts: n/a
 
      22nd Mar 2005
thank you Cor.

Just went to the site now.
I have downloaded "zlib compiled DLL, version 1.2.2,
zipfile format (75k)"

I saved ZLIB1.DLL to the SYSTEM file as stated in the
usage instructions.

But I don't know what i need to do now. I tried adding a
reference to the dll in my solution but i don't see it
there.

can you help? ...please :-)



>-----Original Message-----
>Zippy,
>
>Recommended by who?
>
>I use this one, however there are more.
>http://www.gzip.org/zlib/
>
>I hope this helps,
>
>Cor
>
>
>.
>

 
Reply With Quote
 
Adam Clauss
Guest
Posts: n/a
 
      22nd Mar 2005
Check out:
http://www.icsharpcode.net/OpenSourc...b/Default.aspx

--
Adam Clauss
(E-Mail Removed)

"zippy" <(E-Mail Removed)> wrote in message
news:26c901c52eda$b7b667a0$(E-Mail Removed)...
> In my code I create and save a file. I would like to be
> able to zip that file. I've looked online and it seems
> that there are no zip classes built in to .Net for C#.
>
> How can i zip a file then? It seems there are free zip
> libraries about. Is this only way?
>
> What's a recommeded zip library to use, with easy to
> follow documentation?
> I've looked around and it looks like there's lots of
> files to download and its not immediately clear how to go
> about the simple process of zipping a file in code.
>
> help!



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      22nd Mar 2005
Zippy,

I have used the version 1.2.1 with Zlibwapi, not this one, however I saw
there is a complete C# project in it.

Cor


 
Reply With Quote
 
CometJoe
Guest
Posts: n/a
 
      22nd Mar 2005
I used SharpZipLib. There are examples available or I can post mine.

http://www.icsharpcode.net/OpenSourc.../Download.aspx

Hope this helps,
Joe


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
AlexL [Xceed]
Guest
Posts: n/a
 
      22nd Mar 2005
>What's a recommeded zip library to use, with easy to
>follow documentation?


Try Xceed Zip for .NET. There are other competing libraries as well,
though in some surprising cases they are not managed code (they are
..NET wrappers over old unmanaged C/C++ code) and in other cases they
are very basic components.

Xceed Zip for .NET has the most features and a beautiful (yes, I am
biased, I work for Xceed) programming object model based on making
files and folders in a zip file usable interchangeably with regular
files / folders, memory files, etc.

http://www.xceedsoft.com/products/zipnet

If your needs are not overly complex, it even allows you to zip or
unzip multiple files with one method call.

On Tue, 22 Mar 2005 04:28:56 -0800, "zippy"
<(E-Mail Removed)> wrote:

>In my code I create and save a file. I would like to be
>able to zip that file. I've looked online and it seems
>that there are no zip classes built in to .Net for C#.
>
>How can i zip a file then? It seems there are free zip
>libraries about. Is this only way?
>
>What's a recommeded zip library to use, with easy to
>follow documentation?
>I've looked around and it looks like there's lots of
>files to download and its not immediately clear how to go
>about the simple process of zipping a file in code.
>
>help!


--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our advanced .NET grid and SmartUI controls

Email: (E-Mail Removed) (remove the first 'x')
 
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
Creating excel file, adding code to it from code, VBE window stays BlueWolverine Microsoft Excel Programming 0 5th Nov 2009 07:55 PM
Sample code to make your code reload data that changed in config file delphiconsultingguy@yahoo.com Microsoft Dot NET Framework 0 13th Jun 2006 06:55 PM
what is the difference between code inside a <script> tag and code in the code-behind file? keithb Microsoft ASP .NET 1 29th Mar 2006 02:00 AM
C# 2005 how to remove warning "The file 'C:\Main.cs' does not support code parsing or generation because it is not contained within a project that supports code. Serdge Kooleman Microsoft C# .NET 0 9th Feb 2006 05:43 PM
Import VBA Code in Excel-File ? (Export VBA Code to file) Matthias Pospiech Microsoft Excel Programming 2 22nd Mar 2005 04:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:39 AM.