Zipping a file programmatically in vs2005

  • Thread starter Thread starter ReidarT
  • Start date Start date
i use the sharpziblib library for zipping purposes ( not yet needed in VS
2005 ) but i guess it is just a mather of a recompile

regards


Michel Posseth
 
Herfried,
I have not used GzipStream yet, however I get the impression that it only
compresses a single stream (file) rather then maintain the collection of
files in a zip. Of course I could have the wrong impression of GzipStream

I understand that you need to use some upcoming WinFX API to maintain the
collection of files in a zip.

For example you could use GzipStream to compress WebRequests & WebResponses
"on the fly".

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| > How can I zip (compress) a file in vs2005 with windows own zip-program?
|
| Check out the 'System.IO.Compression.GzipStream' class.
|
| --
| M S Herfried K. Wagner
| M V P <URL:http://dotnet.mvps.org/>
| V B <URL:http://classicvb.org/petition/>
 
Jay B. Harlow said:
I have not used GzipStream yet, however I get the impression that it only
compresses a single stream (file) rather then maintain the collection of
files in a zip. Of course I could have the wrong impression of GzipStream

That might be true, but the OP was specifically asking for zipping a single
file ;-).
 
Herfried,
| That might be true, but the OP was specifically asking for zipping a
single
| file ;-).

Does the OP want a file that uses the ZIP compression algorithm, or does he
want a .ZIP file that contains a single file?

I really don't know. When I hear "zip a file" I think of a .ZIP file that
contains a single file. Not a file that uses the ZIP compression algorithm.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| > I have not used GzipStream yet, however I get the impression that it
only
| > compresses a single stream (file) rather then maintain the collection of
| > files in a zip. Of course I could have the wrong impression of
GzipStream
|
| That might be true, but the OP was specifically asking for zipping a
single
| file ;-).
|
| --
| M S Herfried K. Wagner
| M V P <URL:http://dotnet.mvps.org/>
| V B <URL:http://classicvb.org/petition/>
|
 
Hello,

I have the same request. I looked and the Compresion and it is pretty much
what I needed except for I also need to password protect the copmressed file.
How could I do that?
Thanks,
Alexis
 
Back
Top