Temporary filename during transfer (General questions)

by DaveMolloyKett @, (5028 days ago)

Hello

I am wondering whether there is a property or method in which controls the transfer of file using a temporary file name, with automatic renaming to its real name on completion?

(I'm sure this has been asked before, but could find nothing by searching, and see not reference to it in the manual.)

Many Thanks
D

locked

Re: Temporary filename during transfer

by wodDamir @, (5028 days ago) @ DaveMolloyKett

Hi Dave,

Actually, component doesn't use temporary files unless PutData/GetData methods are used. Component will attempt to write to location specified in GetFile/PutFile location, and report an error if that's not possible.

Hope this helps.

Regards,
Damba

locked

Re: Temporary filename during transfer

by DaveMolloyKett @, (5028 days ago) @ wodDamir

Ah. Okay, thanks for this.

As the files in question are quite large, it looks like I may have to write something myself, then, since your notes indicate PutData should only be used for small volumes of data.

Thank you, anyway.

locked

Re: Temporary filename during transfer

by wodDamir @, (5028 days ago) @ DaveMolloyKett

Dave,

You would want it to write to temporary files?

Why not simply use GetFile to write to some temporary location, and then simply use API calls to move/rename file somewhere else?

Wouldn't that have the same effect?

Regards,
Damba

locked

Re: Temporary filename during transfer

by DaveMolloyKett @, (5027 days ago) @ wodDamir

I almost certainly will. I just wanted to make sure I wasn't 'reinventing the wheel', if you know what I mean. I prefer to use any in-built functionality of a tool I am using.

Thanks for your help.

locked