This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
Greenhorn
Joined: Jan 10, 2002
Posts: 21
posted
0
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
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
posted
0
Am I missing something? My Socket class also has a getOutputStream(). - Peter