Sampling a file - WeOnlyDo Discussion board

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

by cvmbor, Sunday, October 14, 2007, 21:49 (6048 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

Re: Sampling a file

by wodDamir, Sunday, October 14, 2007, 22:31 (6048 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