Hai, i like my client to send file as an input in the command line argument and want my server to receive that inputfile. as the socket class has only socket.getInputStream(). how could my client read the file from the commandline argument?
is there an way? Thanks
Its Just Me
Joined: Jan 10, 2002
Using the "File"-class, you could open the file that is supplied as an argument and using the proper filereader, you could read the data from the file as a bytestream and write this to the output, therefore to your server.
Peter den Haan
Joined: Apr 20, 2000
Am I missing something? My Socket class also has a getOutputStream(). - Peter