Skip to content

SHIBINSHA02/file_compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File Compression with zlib and base64

This Python script demonstrates how to compress text data using the zlib library and then encode the compressed data in base64. It also includes handling cases where the "comp.txt" file either exists or doesn't exist.

Getting Started

  1. Make sure you have Python installed on your system.

  2. Clone or download the repository to your local machine.

  3. Create a text file named "test.txt" in the same directory with the text data you want to compress.

Usage

Run the Python script to compress the text data and save it to "comp.txt." The code checks if "comp.txt" already exists and contains data before overwriting it.

python main.py
The compressed and base64-encoded data will be stored in "comp.txt."

Dependencies
Python (Tested with Python 3.x)

Author
S.SHIBINSHA


Acknowledgments
zlib Documentation
base64 Documentation


## Screenshot


![Compression](images/Screenshot.png)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages