• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

File Compression

I need a class or function that will compress a file. All it needs to do is take an input filename and an output filename and possibly amount of compression required.

Thankyou in advance for any help.
0
TSMITH
Asked:
TSMITH
  • 2
1 Solution
 
snoeglerCommented:
Check out www.gnu.org, they have lots of free code. Among others, you can find the compression functions from 'GZIP', which are slightly better compared to PKZIP/WinZIP.
I have adapted the source code within one of my own projects, it's not hard to do.
0
 
RONSLOWCommented:
look here

http://www.internz.com/compression-pointers.html

for links to libraries, source code, books etc on compression.

in particular, get zlib .. free portable compression. There is an article about it (with downloads) at

http://www.dogma.net/markn/articles/zlibtool/zlibtool.htm
0
 
TSMITHAuthor Commented:
I am now successfully using Zlib, cheers, it even has a little encryption function.
0
 
RONSLOWCommented:
Good stuff .. I might even try it myself :-)
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now