What i am doing is "Capturing audio using java applet and sending it to a server what server has to do is to recieve the audio and write it to the disk with a name specified to the server" since every time a new audio is sent to server , i want server to save it with a new name which is sent by the client applet. I guess its clear to you Paul,
Since i can not store the entire captured data to some temporary buffer(if so please tell how) on client machine, cannot sent the whole data to server at once getting it blended with some object(in form of attribute along with name and other netadata), i streamed it to server , the server is recieving it.
The concern is fixing metadata with any bufferedStream/OutputStream and receiving it at server side,
The server will see that you are finished because it will come to the end of its SocketInputStream, so it can then deal with the whole of your captured audio clip.
please tell me how can server extract the name of audioinputstream( my context of metadata is what is generic i.e format,framesize,length and also the explicitly attached metadata i.e name, id etc).
the generic metadata can be extracted from the data stored in buffer since its JVM's personal matter but when it comes to extra information , i have not found any way yet to bind it to stream and extract it at server .
Thanks a lot for the concern.