hey, im a newbie with programming and im working on a networking program.
question: what stream should i use for sending a file from a client to a server app ?
File file = filechooser.getSelectedFile();
i want to send file to my server app...
Is the file bytes or characters? There are different classes depending on which. Characters can go thru a conversion.
Use an OutputStream for bytes and a Writer for characters
suppose i want to send all kinds of files(audio(bytes?),text(char?),...), depending on the user's choise, should i make object from/for these files(if yes, then how?) before i can send them to the client?
Not sure what "make object" means.
To access files on disk,you must use some kind of file object to read them.
If you read bytes and write bytes on both ends, the output file on the client should be the same as the input file on the server.