Linked Questions

35 votes
1 answer
111k views

I have implement the simple TCP server and TCP client classes which can send the message from client to server and the message will be converted to upper case on the server side, but how can I achieve ...
starcaller's user avatar
10 votes
5 answers
15k views

I have used the code here to send an individual file over a socket. However, I need to be able to send multiple files (basically all files in a directory) over the socket and have the client ...
ewok's user avatar
  • 21.7k
6 votes
2 answers
17k views

I have written a small client-server code for transferring small file. It uses Data output stream and readFully() method of data input stream. This code does not work for larger files for obvious ...
Vinit Shandilya's user avatar
0 votes
3 answers
7k views

I have the following code which transfers file via Sockets. How do I send the file name? Socket socket = new Socket("localhost", port);//machine name, port number File file = new File(fileName); // ...
sap's user avatar
  • 1,141
1 vote
2 answers
8k views

I want to send multiple files with a socket connection. For one file it works perfectly, but if I try to send more than one (one at a time) I get a Socket Exception: java.net.SocketException: socket ...
MS1's user avatar
  • 518
3 votes
1 answer
2k views

I have a file sender and receiver. From the 10 or so posts I've found on the internet, this is the correct way to send files through sockets in Java. Take a look at the code snippets below. Sender: ...
Richard Chase's user avatar
1 vote
1 answer
2k views

I have 2 devices connected via Socket Server Code - (Android app): log("sending song to client - " + clientSocket.getInetAddress().toString()); InputStream fileInputStream = new ...
bradley101's user avatar
0 votes
1 answer
3k views

My project is to write a server and client class. The server waits to receive a path for a file which it will convert from CSV to XML and then it's supposed to read the contents of the file back to ...
Arian.No's user avatar
0 votes
1 answer
4k views

I'm trying to send a file through Java sockets from one program to the other. My code is based off of this question. The issue is that on the Ubuntu machine hosting the server, the file sent over is 0 ...
Max K's user avatar
  • 696
0 votes
1 answer
3k views

I am first transferring a file from a client to my master, the stores the byte array and then sends to the slave. Where the slave stores the byte array. But when The file is sent properly from client ...
Krish's user avatar
  • 159
2 votes
1 answer
4k views

Is there any way to copy file to remote linux machine from windows using java without FTP protocol?
debnath's user avatar
  • 51
1 vote
3 answers
3k views

Presently My Server program can able to receive the file from client socket and able to save that received file in server machine. But I am need to receive many files from client socket to server ...
Mars7285's user avatar
0 votes
1 answer
3k views

In this code I use multiple times of retrieve input-output data from two nodes. ... when I use more than two times input output stream it generated this type of error while running this code I need ...
paul's user avatar
  • 499
2 votes
2 answers
1k views

I am trying to transfer a file that is greater than 4gb using the Java SocketsAPI. I am already reading it via InputStreams and writing it via OutputStreams. However, analyzing the transmitted packets ...
aWdas's user avatar
  • 145
2 votes
2 answers
2k views

I am trying to send a file from "server" to "client" using BufferedOutputStream and BufferedInputStream on both ends. The problem is that although I flush() the BufferedOutputStream on server on every ...
Michał Wesołowski's user avatar

15 30 50 per page
1
2 3 4 5
7