EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How To use ElSimpleFTPSClient.Send

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#15986
Posted: 03/07/2011 02:14:36
by Nicolas POTIER (Standard support level)
Joined: 07/25/2009
Posts: 3

Hi everyone,

I simply want to have a detailled example of the use of ElSimpleFTPSClient.Send option to upload a file on a FTP server.

procedure Send(Stream : TStream; const FileName : string; StartPos, EndPos : int64; Append : boolean; RestartFrom : integer = 0);

All data is needed ? How can i have them ? What is stream ?

Thanks in advance for help
#15987
Posted: 03/07/2011 02:23:24
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

You can use this code to upload file:
Code
var
  FS : TFileStream;
begin
  try
    FS := TFileStream.Create('c:\your_file.txt', fmOpenRead);
    FTPSClient.Send(FS, 'your_file.txt', 0, FS.Size - 1, false, 0);
  finally
    FS.Free;
  end;
end;


The whole sample can be found in \EldoS\SecureBlackbox\Samples\Delphi\FTPSBlackbox\Client\SimpleFTPSDemo folder after SecureBlackbox installation.
#15988
Posted: 03/07/2011 02:27:00
by Nicolas POTIER (Standard support level)
Joined: 07/25/2009
Posts: 3

Quote

The whole sample can be found in \EldoS\SecureBlackbox\Samples\Delphi\FTPSBlackbox\Client\SimpleFTPSDemo folder after SecureBlackbox installation.


Seems to not be offer with source version of FTPs only component maybe a good idea to put in ?

Thanks to example, i will try it (and i now see where i do error on it)

Regards,
Nicolas
#15989
Posted: 03/07/2011 02:32:13
by Eugene Mayevski (EldoS Corp.)

The samples are included only with the precompiled packages. In fact, the source code package is a supplementary one as it includes only the source and no help file or samples.


Sincerely yours
Eugene Mayevski
#15990
Posted: 03/07/2011 02:33:55
by Nicolas POTIER (Standard support level)
Joined: 07/25/2009
Posts: 3

Ok,

That's perfectly works; thanks for all.

Nicolas
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 1185 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!