Thanks for your reply,
I did some code run. I found that after reding bytes directly through InputStream, I try stuffing this stream into BufferedReader and read chars, it works fine.
However after reading through BufferedReader, if I try reading bytes back from InoutStream, it hangs.
Donn know if there are synchronization issues here(though BufferedReader code looks very straight)
Thus for the below code:
inputStream = _socket.getInputStream();
byte []tempbyte = new byte[100];
int count1 = inputStream.read(tempbyte);
String s= new String(tempbyte);
inputReader = new BufferedReader(new InputStreamReader(_socket.getInputStream(), "UTF-8");
char [] tempChar = new char[100];
int count = inputReader.read(tempChar);
works till here while the below line when run after the above one hangs
count1 = inputStream.read(tempbyte);
I can confirm that reading through InputStream after having read through BufferedReader fails in any combination of above code.
Any suggestions.
Regards,