Upload from buffer

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
pro510
Posts: 33
Joined: Fri May 06, 2005 2:18 pm

Upload from buffer

Post by pro510 » Fri May 06, 2005 2:22 pm

Hi,

Currently evaluating your FTP library and am wondering if you plan to implement an upload / download, straight from / to a data buffer.

Currently we ftp memory mapped files and to use your library we need to write these files to disk first before uploading, which adds additional overheads.

Thanks,
Graham

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Upload from buffer

Post by mb » Fri May 13, 2005 11:16 am

Hello ...

Yes its planned. How would you like us to implement it?

DownloadData and UploadData with a similiar syntax as DownloadFile and UploadFile. But I'm not sure what would be the best automation compatible data type for the data to be transferred. BSTR would be one option but its probably limited to 64KB in certain situations.

-Mat

pro510
Posts: 33
Joined: Fri May 06, 2005 2:18 pm

Re: Upload from buffer

Post by pro510 » Tue May 24, 2005 4:05 pm

Doing it in chunks of 64K shouldn't be a problem for me. Unfortuantely I don't know enough about COM to advise on the best implementation.

Graham

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Upload from buffer

Post by mb » Wed May 25, 2005 1:54 am

There is no way to do it in chunks though.

We may consider offering a uploadfile and downloadfile method which takes a HANDLE as the first argument. But this wouldn't be an automation compatible function and therefore you can only use it with C++ et al.

This methods would allow you to create a memory file on the client side and use the windows handle for the use with the new methods.

-Mat

pro510
Posts: 33
Joined: Fri May 06, 2005 2:18 pm

Re: Upload from buffer

Post by pro510 » Wed May 25, 2005 7:00 am

That would be good for me as we currently use CMemFile.

Post Reply