Skip to content

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

License

Notifications You must be signed in to change notification settings

gayanukabulegoda/PhotoByteConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

    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 file for details.


© 2024 Gayanuka Bulegoda