Transfer a file in pieces

Signed-off-by: Umair Khan <omerjerk@gmail.com>