uff_size represents the maximum size for each read operation performed on from_file. :param report_activity: Call this as bytes are read, see Transport._report_activity :param direction: Will be passed to report_activity :return: The number of bytes copied. r