T
tobleron
Hi, I have code like this :
package ecgterminal3;
import org.apache.commons.net.ftp.FTPClient;
------- blaaa....
FTPClient client = new FTPClient();
FileInputStream fis = null;
try {
client.connect("ftp://140.135.100.180");
client.login("dicom", "dicom");
String thedcmfile = "D:\\NetBeanProject\
\ECGTerminal3\\DICOMfiles\\" + namafile;
fis = new FileInputStream(thedcmfile);
client.storeFile(thedcmfile, fis);
client.logout();
client.disconnect();
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
-----blaaa....
I found error message : java.net.SocketException: Malformed reply from
SOCKS server.
What happened ? What shoud I use for client.connect("ftp://
140.135.100.180"); ? I already used
client.connect("ftp://140.135.100.180");
client.connect("140.135.100.180");
client.connect("localhost");
client.connect("ftp://localhost");
client.connect("ftp.localhost");
But still get the same error. Please advise. Thank you in advance.
package ecgterminal3;
import org.apache.commons.net.ftp.FTPClient;
------- blaaa....
FTPClient client = new FTPClient();
FileInputStream fis = null;
try {
client.connect("ftp://140.135.100.180");
client.login("dicom", "dicom");
String thedcmfile = "D:\\NetBeanProject\
\ECGTerminal3\\DICOMfiles\\" + namafile;
fis = new FileInputStream(thedcmfile);
client.storeFile(thedcmfile, fis);
client.logout();
client.disconnect();
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
-----blaaa....
I found error message : java.net.SocketException: Malformed reply from
SOCKS server.
What happened ? What shoud I use for client.connect("ftp://
140.135.100.180"); ? I already used
client.connect("ftp://140.135.100.180");
client.connect("140.135.100.180");
client.connect("localhost");
client.connect("ftp://localhost");
client.connect("ftp.localhost");
But still get the same error. Please advise. Thank you in advance.