U can get Socket's InputStream & read byte-by-byte... i hv attached the portion
to read byte-by-byte & to print on screent... i hope u can make it other
portions, if u can't do reply i will give u the complete programs..
BufferedInputStream bin = new BufferedInputStream(s.getInputStream());
int n=-1;
byte[] b = new byte[5000];
while((n=bin.read(b,0,b.length))!=-1)
{
for(int i=0;i<n;i++)
{
System.out.print((char)b[i]);
}
}
bin.close();
s.close();