An open API service indexing awesome lists of open source software.

https://github.com/gayanukabulegoda/photobyteconverter

Converts uploaded photos to byte arrays, demonstrating serialization and deserialization processes.
https://github.com/gayanukabulegoda/photobyteconverter

apache-commons apache-tomcat bytearray bytecode deserialization file-to-byte-arrays html-css-javascript java-servlet-api javaservlet photobyteconverter serialization serialization-deserialization

Last synced: 5 months ago
JSON representation

Converts uploaded photos to byte arrays, demonstrating serialization and deserialization processes.

Awesome Lists containing this project

README

          

# PhotoByteConverter

## Introduction
PhotoByteConverter is a simple web application that converts uploaded photos to byte arrays and returns them as responses. This project demonstrates the serialization and deserialization processes using Java Servlets for the backend and a basic HTML interface for file upload.

## Technologies Used
- **Backend**: Java Servlets, Apache Tomcat
- **Frontend**: HTML, CSS, JavaScript
- **Other Tools**: Apache Commons IO for file handling

## Table of Contents
- [Technologies Used](#technologies-used)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Running the Application](#running-the-application)
- [Usage](#usage)
- [License](#license)

## Getting Started

### Prerequisites
To run this project, ensure you have the following installed:
- Java Development Kit (JDK) 8 or higher
- Apache Tomcat (or any servlet container of your choice)

### Running the Application
1. **Clone the repository:**
```bash
git clone https://github.com/gayanukabulegoda/PhotoByteConverter.git

2. **Backend Setup:**
- Navigate to the backend directory.
- Deploy the PhotoServlet on your servlet container (e.g., Apache Tomcat) by copying the WAR file or configuring the servlet in your IDE.

3. **Frontend Setup:**
- Navigate to the frontend directory.
- Open index.html in your browser to access the frontend interface.

## Usage
1. Open the web interface (index.html) in your browser.
2. Choose a photo file to upload and click the "Upload" button.
3. The backend will convert the photo to a byte array and display it as a response.

## License
This project is licensed under the MIT License - see the [MIT License](LICENSE) file for details.

##












© 2024 Gayanuka Bulegoda