Solved

File Compression

Posted on 2000-03-27
4
176 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now