Bugs are a big deal to me, so do tell what you found. I created this example by stripping down a more extensive piece and well used program, so there could still be some issues that crept in while creating a working example for you.kinglestat wrote:there where a couple of bugs in the code...no big deal
Comparing between a FTP program created with the current PB FTP Library and Filezilla is likely to show very different speeds. PB is a rigidly defined setup. Filezilla is substantially more flexible with transmission type, buffer size, etc. and may even do some optimization based on the accessed server connection. PB's FTP commands don't allow that flexibility and have no way (that I am aware of) to interrogate the server.
That being understood, you can accomplish the singular task of sending a file to an FTP server quickly and reliably. Speed can be optimized for a particular server by studying the server's response(s) and tweaking the PB code to accomodate the server's idiosyncracies. To do that with PB's limited FTP command set is pretty difficult. If you want more control, search for the "FTP Library" created by Num3 and expanded by myself and others back about 5 years ago.
There are examples there that show the "FTP conversation" between the progam and the server. I believe I last updated my examples for PB Vs 4.51 in 2011.
Good luck!
