Download from FTP to memory

Just starting out? Need help? Post your questions and find answers here.
User avatar
Jac de Lad
Enthusiast
Enthusiast
Posts: 106
Joined: Wed Jul 15, 2020 7:10 am
Contact:

Download from FTP to memory

Post 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?
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Download from FTP to memory

Post by infratec »

Write it to the FeatureRequest/Wishlist.

Unfortunately it is not done with curl, so it is not possible to use libcurl.pbi.
User avatar
Jac de Lad
Enthusiast
Enthusiast
Posts: 106
Joined: Wed Jul 15, 2020 7:10 am
Contact:

Re: Download from FTP to memory

Post by Jac de Lad »

Thanks infratec.

I could use Windows API, but built-in is always better.
User avatar
falsam
Enthusiast
Enthusiast
Posts: 632
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: Download from FTP to memory

Post by falsam »

Hello Jac. Are the files accessible with the http protocol ?

➽ Windows 11 64-bit - PB 6.21 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect 🤪
User avatar
Jac de Lad
Enthusiast
Enthusiast
Posts: 106
Joined: Wed Jul 15, 2020 7:10 am
Contact:

Re: Download from FTP to memory

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