byte[] buff = input.readAllBytes(); System.out.println(buff.toString());