I need to implement segmented downloads.

Meaning... If there is a file on the server which is 1GB, how can I download it in 100MB segments?

I want to have 10 connections... each downloading 100MB of the file at different offsets: File.avi.001 File.avi.002 ... File.avi.010

Then, I will concatenate those files once the transfers are complete.

Is this possible with Rebex? I don't see a GetFile() overload with a "length" parameter.

I see that it is possible with PutFile.

asked 17 May '11, 20:03

John%20Hancock's gravatar image

John Hancock
251
accept rate: 0%


The GetFile method doesn't have the "length" parameter, because the FTP protocol doesn't have a command to limit the length of transferred data (only the offset where the transfer starts can be specified within the FTP protocol).

Actually, what do you want to achieve by segmented download?

link

answered 18 May '11, 13:09

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

I'm attempting to speed up transfers.

I was able to write a function around GetDownloadStream that is allowing me to do what I want. My download went from 13Mbps to 24Mbps.

(18 May '11, 18:34) John Hancock

If speed up transfer is desired, please try to enable large buffers as described at http://forum.rebex.net/questions/173/how-to-optimize-transfer-performance-with-uploadbufferlength

(19 May '11, 13:18) Lukas Matyska ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×20
×6
×2

Asked: 17 May '11, 20:03

Seen: 398 times

Last updated: 19 May '11, 13:18