您不能使用ftp开箱即用。
如果文件位于http上,则可以执行以下操作:
URL url = new URL("http://q.com/test.mid");InputStream is = url.openStream();// Read from is如果要使用库进行FTP,则应签出Apache Commons Net

您不能使用ftp开箱即用。
如果文件位于http上,则可以执行以下操作:
URL url = new URL("http://q.com/test.mid");InputStream is = url.openStream();// Read from is如果要使用库进行FTP,则应签出Apache Commons Net