Issue in reading data from Socket
<p>I am facing some problem during reading data from socket If there is some null data in socket stream so the DataInputStream would not read the full data and the so at the receiving end there is exception for parsing data. 
What is the right way to read the data from socket so there is no loss of data at any time ?
Thanks in advance. </p>
