Solved

File Compression

Posted on 2000-03-27
4
181 Views
Last Modified: 2013-11-20
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
Comment
Question by:TSMITH
  • 2
4 Comments
 
LVL 6

Expert Comment

by:snoegler
ID: 2661288
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
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
ID: 2662986
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
 

Author Comment

by:TSMITH
ID: 2672431
I am now successfully using Zlib, cheers, it even has a little encryption function.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2672596
Good stuff .. I might even try it myself :-)
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 130
Define unique primary key 9 92
zeroFront challenge 7 98
FizzBuzz challenge 9 80
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question