Coder Social home page Coder Social logo

template_image_transfer's Introduction

Socket communication: image transfer and manipulation

This assignment involves establishing a socket connection between a client and a server.

Your task is to develop an executable jar that can initiate either the client or the server application. Launch the server using the following command-line instruction, where 12345 represents the port number:

java -jar ImageTransfer-1.0.jar server 12345

To start the client, use this command:

java -jar ImageTransfer-1.0.jar client 127.0.0.1 12345

Here, you specify the server's IP address and port number.

When the server is operational, it will receive a jpg image from the client. The server will then convert this image into greyscale and return the altered image to the client, which will display it.

  • Step 1: Begin by reading about socket communication: https://docs.oracle.com/javase/tutorial/networking/sockets/index.html. Starting with implementing the EchoServer and EchoClient example is beneficial.

  • Step 2: Fill in the missing pieces in the Util class. This is where you'll find methods for sending and receiving an image, as well as the algorithm for changing the image from color to greyscale.

  • Step 3: Develop the server's code, incorporating extra debug messages for clarity.

  • Step 4: Develop the client's code, also including additional debug messages.

  • Step 5: Create the main application that ties everything together.

  • Step 6: Modify the pom.xml file to enable the construction of an executable jar. Proceed to test your application.

template_image_transfer's People

Contributors

custersnele avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.