RTC Forums
November 23, 2024, 07:51:33 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Sending large compressed files
Pages: [
1
]
« previous
next »
Print
Author
Topic: Sending large compressed files (Read 4528 times)
DPerkins
RTC License
Posts: 37
Sending large compressed files
«
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
Re: Sending large compressed files
«
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
Re: Sending large compressed files
«
Reply #2 on:
July 04, 2017, 02:39:06 PM »
Great, thanks.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...