As a rule of thumb, if you need to display the progress when receiving a single result from a single remote function call, it means that you are using remote functions for something they were not meant to be used for.
For sending and/or receiving large files (or huge amounts of data), especially if there is a requirement for a progress bar indicating the status of a transfer, you should be using TRtcDataProvider (Server side) and TRtcDataRequest (Client side) components, which provide you with all the events needed to implement what you want and give you full control over the transfer.
For simple examples of a Server providing access to its files by using the TRtcDataProvider component, please check the Quick Start Server Lessons 3 and 4 in the
Quick Start guide HERE. Source code for Server Lessons is also available in the "QuickStart" folder of the RTC SDK. For a more complex example, check the "File_Server" and/or "RtcWebServer" Projects in the "Demos" folder.
For a simple example of a Client downloading files from a Server by using the TRtcDataRequest component, please check the
Quick Start Client Lesson 1 in the Quick Start guide HERE. For a more complex Client example, check the "File_Client" Demo, which is located in the "Demos" folder of the RTC SDK. The "File_Client" demo also shows you how to implement a progress bar when using the "TRtcDataRequest" component.
Best Regards,
Danijel Tkalcec