Sampling a file (wodSFTP / wodSFTP.NET / wodSFTPdll)

by cvmbor @, (6411 days ago)

Could any of the GetData or other methods in combination with some event be used to just sample the content of a file without retrieving the entire thing? This would be handy when dealing with large files.

Thanks

Craig Morris

locked

Re: Sampling a file

by wodDamir @, (6411 days ago) @ cvmbor

Hi Craig,

Why not try using GetFileAt/GetFileAt64 methods? You can specify how much you want to retrieve from the server. You could store it to a temporary file, and read it manually.

Even GetData creates a file locally, so basically you could accomplish the same thing this way.

Hope I helped.

Regards,
Damba

locked