Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

INdy 9 FTP client and server, using delphi 5 When transferring file I get "141:550 "RETR" command not implemented"

145 views
Skip to first unread message

Peter Murad

unread,
May 10, 2003, 11:57:44 AM5/10/03
to
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?

Any help is appreciated.

Thank you.


J Peter Mugaas

unread,
May 10, 2003, 5:37:07 PM5/10/03
to
On Sat, 10 May 2003 11:57:44 -0400, "Peter Murad"
<Peter...@hopemed.com> wrote:

>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.

0 new messages