D
DaveF
I am not to familiar with ftp, but in the code I do the following, and it
does not work...
ff.setGetCamera("cameras.tar.gz");
sendCommand("GET "+remFileName);
if (retValue != 200)
{
//throw new IOException(reply.Substring(4));
}
}
private void sendCommand(String command)
{
Byte[] cmdBytes =
Encoding.ASCII.GetBytes((command+"\r\n").ToCharArray());
clientSocket.Send(cmdBytes, cmdBytes.Length, 0);
readReply();
}
does not work...
ff.setGetCamera("cameras.tar.gz");
sendCommand("GET "+remFileName);
if (retValue != 200)
{
//throw new IOException(reply.Substring(4));
}
}
private void sendCommand(String command)
{
Byte[] cmdBytes =
Encoding.ASCII.GetBytes((command+"\r\n").ToCharArray());
clientSocket.Send(cmdBytes, cmdBytes.Length, 0);
readReply();
}