Jump to content


Photo

Upload from buffer


  • Please log in to reply
4 replies to this topic

#1 pro510

pro510
  • Members
  • 33 posts

Posted 06 May 2005 - 02: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

#2 mb

mb

    Developer

  • Administrators
  • 11526 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 13 May 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

#3 pro510

pro510
  • Members
  • 33 posts

Posted 24 May 2005 - 04: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

#4 mb

mb

    Developer

  • Administrators
  • 11526 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 May 2005 - 01: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

#5 pro510

pro510
  • Members
  • 33 posts

Posted 25 May 2005 - 07:00 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users