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

Recommended Answers

All 3 Replies

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.