To reduce the time needed for files to be transmitted over a network, Compression and Decompression techniques are very useful. Developers prefer to write code to compress files before sending them out to the network for a file upload process. Web applications get the most benefit out of it. The .NET
Framework provides the System.IO.Compression
namespace, which contains the compressing and decompressing libraries and streams. Developers can use these types to read and modify the contents of a compressed file.
Java is the number 1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services. With millions of developers running more than 51 billion Java Virtual Machines worldwide, Java continues to be the development platform of choice for enterprises and developers. You sholud have basic knowledge of coding and syntax formats of java for this project. And you should have JDK version 19 or newer installed on your machine.
- Install JDK from oracle.com
- Download Intellij IDE from jetbrains.com
- Download JavaFx from gluonhq.com
For the user interface I used JavaFX which is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms. You can use your favorite editor or any integrated development environment (IDE) that supports the Java language (such as NetBeans, Eclipse, or IntelliJ IDEA) to create and edit JavaFX applications or you can use third-party application to edit .fxml
file like Scene builder which is a visual layout tool that lets users quickly design JavaFX application user interfaces, without coding knowledge.
- Download Scene builder from gluonhq.com
To run this project make sure you have the Java installed on your device then follow the steps given below:
- Clone or download this repository
https://github.com/rohit4242/FileCompressor
- Create new javaFX project in your IDE.
- Copy
src
folder to your project then run the fileMain.java
Here is a list of sources I used to build this project:
- Create a new JavaFX project
- Data Structures Project - File Compression Using Huffman Coding in JAVA
- Java and javaFX tutorials on Youtube.