while(is.available()==0)// is - InputStream {}//wait for data StringBuffer sb = new StringBuffer(); int z = is.available(); for(; z > 0; z--) { sb.append((char)is.read()); } byte [] b = sb.toString().getBytes();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)