I\'m developing a project which requires me to stream audio from microphone from a client to a server. The code shown below is what I have written. When I run both the clie
The problem is in client side, in the line
byte[] data = IOUtils.toByteArray(is);
It deals with the object itself, not with the content. So, you must change it to this:
byte[] data = new byte[1024];