FTP upload via sockets

后端 未结 5 750
一生所求
一生所求 2021-01-26 16:15

how can I upload a file with sockets to a ftp server? I am reading something with \"STOR\" in RFC...It is the same how i transfer a file between two computers?A sample code woul

5条回答
  •  心在旅途
    2021-01-26 16:52

    You really do not want to write your own implementation of the FTP protocol - it's not as simple as it might seem at first glance.

    I'm using commons ftp , which gives you a nice API to all ftp operations.

    If you don't need that much control, you could use URLConnection from the standard java library.

提交回复
热议问题