File compression

  • Thread starter Thread starter Abert
  • Start date Start date
A

Abert

I'm sure I've asked this in the past, fairly recently, but can't find any
record.

I've downloaded MS examples, P.S.C. examples, all sorts of examples, but
can't find a reliable file compression routine.

I understand the principles of the Zip routines in VS but they simply don't
work in all cases. Every example I've found, on de-compression, either add
bytes to the origional file, or render the file useless! I used to do this
stuff in VB6 all the time!!

Every example works fine for txt files and basic data, but all (that I've
tried) specific data backup files, MSSQL, MYSQL, all fail after
re-construction.

Has anyone else noticed this, have a fix, workaround?

Just as a note, I don't want to use external controls or DLL's, must be all
framework.

Cheers.
 
I'm sure I've asked this in the past, fairly recently, but can't find any
record.

I've downloaded MS examples, P.S.C. examples, all sorts of examples, but
can't find a reliable file compression routine.

I understand the principles of the Zip routines in VS but they simply don't
work in all cases.  Every example I've found, on de-compression, eitheradd
bytes to the origional file, or render the file useless!  I used to do this
stuff in VB6 all the time!!

Every example works fine for txt files and basic data, but all (that I've
tried) specific data backup files, MSSQL, MYSQL, all fail after
re-construction.

Has anyone else noticed this, have a fix, workaround?

Just as a note, I don't want to use external controls or DLL's, must be all
framework.

Cheers.

I know you don't want something external but the SharpZip library has
worked exceptionally well for me at http://www.icsharpcode.net/OpenSource/SharpZipLib/
and if you want it all in the framework then the sourcecode is
provided in C#.

Hope that helps.

AGP
 
Abert said:
I've downloaded MS examples, P.S.C. examples, all sorts of examples, but
can't find a reliable file compression routine.

P.S.C. = "Planet Source Crap"? SCNR
I understand the principles of the Zip routines in VS but they simply
don't work in all cases. Every example I've found, on de-compression,
either add bytes to the origional file, or render the file useless!

Compressing files and data
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=compression&lang=en>
 
Back
Top