I would warn you again that you have said twice in this thread that you are
using VS2003.
DotNet 2.0 will not be accessible from VS2003.
However If I have misunderstood then the following may still apply...
I have had VS2005 for about a week andtherefore the following information
may be inacurate but it should point you in the right direction
I would like to use the .NET 2.0 System.IO.Compr ession.
From the MSDN website at
http://msdn2.microsoft.com/en-us/lib...ession.gzipstr
eam(vs.80).aspx
the example shows how to compress then decompress a file.
When decompressing, it is not clear from the example how can I pass
the file
name to GZipStream ? The example passes "ms" (a memorystream) to
GZIPStream,
not a file name. How can I pass the file name to GZIPStream ?
In the example, there is no compressed File.
The Original File is taken and compressed in memory to a stream of bytes.
This stream of bytes could then be written to a file but this is not always
the required functionality. Hence it is not demonstrated.
The bytes are then fed back to the decompression part of the routine and
then the decompressed Bytes are compared with the original bytes that were
read from the file.
If you need to work with Files then all you need to do is to take the appropriate
stream of bytes and write it to a further Filestream. this filestream needs
to have been open for writing.
Alternatively you could use my.Computer.Fil eSystem.WriteAl lBytes
--
Rory