RTC Forums
May 15, 2024, 01:37:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Sending large compressed files  (Read 3622 times)
DPerkins
RTC License
***
Posts: 37


« on: June 30, 2017, 04:50:20 PM »

I'm using TRtcHttpServer and TRtcServerModule to send the same blocks of data to mutliple clients. Ideally I want to compress the data once and then send to multiple clients when requested.  If I use TRtcServerModule.Compression = clFast for general usage, is there a way to tell it to not attempt to compress my already compressed blobks of data?

Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: June 30, 2017, 05:31:08 PM »

Short answer: No, there isn't.

Long answer ...

You can enable automatic compression on TRtcClientModule/TRtcServerModule components if you want the components to compress ALL DATA before sending and decompress after receiving. When automatic compression is enabled, everything will be compressed before sending (again, if it was already compressed). Since RTC compresion is transparent to your own code, enabling or disabling compression doesn't change the way you use the components.

What you can do, ofcourse, is to use one set of TRtcClientModule/TRtcServerModule components with automatic compession enabled and another set of components with compression disabled. You will need to use a different ModuleFileName for each set of components and use the most appropriate TRtcClientModule component on the Client for each job, but the same TRtcFunctionGroup component can be attached to multpile TRtcServerModule components on the Server, so there is no need to explicitly separate your functions on the Server.

Best Regards,
Danijel Tkaclec
Logged
DPerkins
RTC License
***
Posts: 37


« Reply #2 on: July 04, 2017, 02:39:06 PM »

Great, thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.