Jump to content
Mark-

OverbyteIcsFtpTst Version: 8.01

Recommended Posts

Posted (edited)

Hello,

 

Using the sample project to fetch file size. Binary Mode is checked and the error returned for "Size" and "FileSize" button is:

 

image.png.47d696de542880a408d67d29487c319a.png

 

image.png.eb836a943b75f571639a2ebb4617a097.png

 

I verified "Binary" was true.

 

image.png.a0ab927e6151e9b84dcdfeecb35867b5.png

Ideas?

 

Thanks,

 

Mark

 

Edited by Mark-

Share this post


Link to post
Posted (edited)
3 hours ago, Angus Robertson said:

V8.01 is 14 years old, unsupported.

That is the version of the sample program.

Is there a newer version of the sample program?

Edited by Mark-

Share this post


Link to post

That non-SSL sample is no longer part of the main distribution, the SSL version was last updated two weeks ago in SVN.  But the FTP commands have not changed in many years.

 

Angus

 

  • Thanks 1

Share this post


Link to post
Posted (edited)

Using version: 8.65

Just a follow up for anyone wanting to fetch a file size. I could not get the Async call to work.

 VerifyFTP.UserName:=<UserName>;            
 VerifyFTP.PassWord:=<Password>;
 VerifyFTP.HostName:=<HostName>;
 VerifyFTP.HostDirName:=<HostDirName>;
 VerifyFTP.HostFileName:=<HostFileName>;
 try
  VerifyFTP.Connect;
  VerifyFTP.Cwd;
  VerifyFTP.TypeBinary;
  VerifyFTP.Size;
 finally
  VerifyFTP.Quit;
  ShowMessage(VerifyFTP.SizeResult.ToString);
 end;

Thanks François and Angus.

Edited by Mark-

Share this post


Link to post

To send the "binary" information to the server, you must call TypeSet or TypeSetAsync.

 

Share this post


Link to post
44 minutes ago, FPiette said:

To send the "binary" information to the server, you must call TypeSet or TypeSetAsync.

Right, the Async (FileSize, calls FileSizeAsync) function to fetch a file size does not do that, in the version I am using.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×