I am trying to send the sound (.wav) file form node server to the java client. Since, I am new on both, I cant be able to figure out how to achieve this? I have written following nodejs program.
var fileStream = files.createReadStream ("/tmp/tts_out.wav");
fileStream.on('open', function(){
fileStream.pipe(socket);
I am unable to write the program. Is there anyone can help?