S
S
SerS2015-11-19 19:24:30
Java
SerS, 2015-11-19 19:24:30

How to make the simplest Client-server in java to transfer a file via ftp?

It is necessary to write the simplest client and server. The bottom line is that the client sends a file, and the server receives it and saves it. It's all organized through the ftp protocol. How can I do that? With difficulty, I made a transfer by bytes (I read the file into an array of bytes and transfer it to the server), but this is not quite right. I just started learning a programming language, if it's not difficult, please explain in detail.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Astakhov, 2015-11-19
@mytoffnax

Use this to transfer files
If you're writing both client and server parts from scratch, might REST be better ?
Github
By FTP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question