A
Andersen
I have several questions.
I want to transfer a 1MB file between two machines using TCP sockets.
Assume, for some strange reason, that I have all my 1MB stored in a byte
array in memory (inefficient, I know) and want to transfer it over the
socket. Will that work? Or will the receiver side give me trouble?
Is it possible to use PIPEs to connect the File directly to the
OutputStream?
I know that the most sensible way would be neither of the above, but to
probably read chunks at a while and transfer the whole thing in chunks.
regards,
Andersen
I want to transfer a 1MB file between two machines using TCP sockets.
Assume, for some strange reason, that I have all my 1MB stored in a byte
array in memory (inefficient, I know) and want to transfer it over the
socket. Will that work? Or will the receiver side give me trouble?
Is it possible to use PIPEs to connect the File directly to the
OutputStream?
I know that the most sensible way would be neither of the above, but to
probably read chunks at a while and transfer the whole thing in chunks.
regards,
Andersen