Compression problems.

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

Abert

Hi, I've been trying to work on a compression application using the built in
..net Gzip libraries. I've found various samples which all do the same
thing, but don't work, even the MSDN 101 samples fails.

I'm compressing a MySql backup file, I can compress and de-compress without
problems, but when I try to restore the backup file into MySql after the
processes I'm told that the file is invalid. The de-compressed file is also
one byte longer than the original.

Any ideas?
Cheers.
 
I have been using a sample from the following site:

http://thetrainerph.spaces.live.com/blog/cns!9F717AF2A2401F0F!521.entry

I create a test DB and made a .bak file from it - compressed the .bak
using a variety of extension names like .zip, .abc, ...

Then I dropped the testDB, deleted the .bak file and uncompressed my
compressed file bak to a .bak and restored that to sql server. It
worked fine for every extension that I experimented with.

I am using it in VB2005, Framework 2.0

Rich
 
Hi, I've been trying to work on a compression application using the built in
.net Gzip libraries. I've found various samples which all do the same
thing, but don't work, even the MSDN 101 samples fails.

I'm compressing a MySql backup file, I can compress and de-compress without
problems, but when I try to restore the backup file into MySql after the
processes I'm told that the file is invalid. The de-compressed file is also
one byte longer than the original.

Any ideas?
Cheers.

SharpZipLib :)

www.icsharpcode.net

HTH
 
Back
Top