I am new to indy, but I am just trying to get an Indy FTP client to logon to
and Indy FTP server and transfer a file. Is the software installed properly?
or do I need to write code to have the server send the requested file over?
Any help is appreciated.
Thank you.
>INdy 9 FTP client and server, using delphi 5 When transferring file I get
>"141:550 "RETR" command not implemented"
>
>I am new to indy, but I am just trying to get an Indy FTP client to logon to
>and Indy FTP server and transfer a file. Is the software installed properly?
>or do I need to write code to have the server send the requested file over?
>
You probably need to implement the OnRetrieveFile event in
TIdFTPServer.
It's declared like this:
procedure TForm1.IdFTPServer1RetrieveFile(ASender: TIdFTPServerThread;
const AFileName: String; var VStream: TStream);
begin
end;
You implement it by crating a Stream and assigning it to the VStream
parameter. What you do in stream is up to you so you could access a
particular file, read from memory, or retreive it from some database
blob feild.
HTH.
J. Peter Mugaas - Chairperson, Distribution Team, Indy Pit Crew
Internet Direct (Indy) Website - http://www.nevrona.com/Indy
Personal Home Page - http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not contact me.