Compression problems.

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.
 
R

Rich P

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
 
T

Tom Shelton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top