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

Answered by JamesCherrill 4,490 in a post from

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.

Jump to Post

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, learning, and sharing knowledge.