get data from client in server socket java
I am creating a server app which does the following task

Accept connection from client
Process each client connection to separate thread
Receive data from client
send data to client

I am able to connect client but not able to receive data from client
I have to Receive image from the client

Here's a good tutorial on using input and putput streams over Sockets, but instead of using print streams, you can use ObjectOutputStream and ObjectInputStream to transfer your image object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.