title: Loop with input stream using sockets
body: <p><a href="https://stackoverflow.com/questions/9520911/java-sending-and-receiving-file-byte-over-sockets">Java sending and receiving file (byte[]) over sockets</a></p>
  
  <p>referring to the above question i just wanted to ask how can i put this code in loop for recieving multiple images from client side ???? I have tried but it doesnot stop at (count = is.read(bytes)) > 0 once it has read first time. Pleas help</p>