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.
- Backend: Java Servlets, Apache Tomcat
- Frontend: HTML, CSS, JavaScript
- Other Tools: Apache Commons IO for file handling
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)
-
Clone the repository:
git clone https://github.com/gayanukabulegoda/PhotoByteConverter.git
-
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.
-
Frontend Setup:
- Navigate to the frontend directory.
- Open index.html in your browser to access the frontend interface.
- Open the web interface (index.html) in your browser.
- Choose a photo file to upload and click the "Upload" button.
- The backend will convert the photo to a byte array and display it as a response.
This project is licensed under the MIT License - see the MIT License file for details.
© 2024 Gayanuka Bulegoda