Use copyfileobj() to copy part file data.