Re: Download File chunks - WeOnlyDo Discussion board

Re: Download File chunks (General questions)

by Bernd, Friday, November 17, 2006, 17:22 (6367 days ago) @ wodSupport

Kreso,

thank you for your answer.


hi. Unfortunatelly, FTP protocol doesn't support that, so no client nor the server will make it the way you need.

But.. In theory.. You could let your client send REST command to continue at specific position, and then after it receives enough data to send ABOR command - so you get part of the file you need. But it's up to your client to do that.

Of course the standard FTP protcol does not support that. I would implement both the client and the server portion. The server should behave like any standard FTP server to regular FTP clients but should also allow sending data chunks to the client when a special request is received.

I think it could be easily done if you allow to redirect requests to some sort of virtual files. I read the doc's and realized that I can redirect to an arbitrary file but when using this mechanism I had to copy each chunk before transferring. So the main question is if there is a way to replace the file stream functions you use.

So what do you think?

Bernd


Complete thread: