Hi,ya u may remove the other thread..Sorry 4 d trouble..
But i didnt get it, i mean is it possible to write the prog 4 audio files just as we do 4 normal ones..In my server side should i convert it to bytes form using ByteStream and then how do i write it on socket ??
I cant write d whole file at once..right? convertin audio files to bytes is supported in Java? Pl help..
An audio file is just a (binary) file just as other type of files. You can open
an audio file for reading using a simple FileInputStream and read from it.
How you want to send the bytes across the wire depends on you: the other
party must know how many bytes you are going to send one way or another
so you could send the length of the file first, followed by the actual content
of the audio file.
What the other party is going to do with those bytes is also up to you: you
could use a simple FileOutputStream and write those bytes to that file.
kind regards,
Jos