Page 1 of 1
Download from FTP to memory
Posted: Thu Jul 23, 2020 2:26 am
by Jac de Lad
Is there an inbuilt function to download from FTP to memory instead of a file (and vice versa)? If not, is there any special reason why not?
Re: Download from FTP to memory
Posted: Thu Jul 23, 2020 7:24 am
by infratec
Write it to the FeatureRequest/Wishlist.
Unfortunately it is not done with curl, so it is not possible to use libcurl.pbi.
Re: Download from FTP to memory
Posted: Thu Jul 23, 2020 11:15 am
by Jac de Lad
Thanks infratec.
I could use Windows API, but built-in is always better.
Re: Download from FTP to memory
Posted: Thu Jul 23, 2020 12:36 pm
by falsam
Hello Jac. Are the files accessible with the http protocol ?
Re: Download from FTP to memory
Posted: Thu Jul 23, 2020 1:38 pm
by Jac de Lad
Hello falsam,
yes they are. And I know about HttpRequest and such, but I also need to re-upload stuff. Working with memory buffers makes it a lot easier and I guess this shouldn't be too hard to implement since the file for upload and the data received from the FTP-server have to be transferred from memory anyway.