SyntaxFix
Write A Post
Hire A Developer
Questions
int c; String raw = ""; do { c = inputstream.read(); raw+=(char)c; } while(inputstream.available()>0);
InputStream.available() shows the available bytes only after one byte is read, hence do .. while