Title: Fast raw + images transfer Post by: cochise on December 25, 2013, 03:44:24 AM Hello i want to know which is best to transfer raw files , images ..etc from Client to Server and in both sides
i use the RtcByteArray then the compression is this the best . or should i use the rtcByteStream ? i really need your advice . many thanks Title: Re: Fast raw + images transfer Post by: D.Tkalcec (RTC) on December 25, 2013, 11:55:35 AM If you are using RTC remote functions, it shouldn't make much of a difference between using RtcByteArray or RtcByteStream types.
Compression can make a difference, depending on your CPU and available bandwidth. Splitting data in smaller or bigger chunks can make a difference, depending on your Network and bandwidth. The use of different APIs can make a difference (UseProxy/UseBlocking/UseWinHTTP on TRtcHttpClient component), depending on the way the Operating System handles each API. The best answer I can give you is to run your own tests and find out what works best for your specific scenario. Best Regards, Danijel Tkalcec Title: Re: Fast raw + images transfer Post by: cochise on December 25, 2013, 12:59:21 PM If you are using RTC remote functions, it shouldn't make much of a difference between using RtcByteArray or RtcByteStream types. yes Danijel i'm using the RTC Remote Functions in transferring in both sides . By the way Danijel can you give me a little code on how to use the rtcZLib with the RtcByteStream ( ZCompress_Ex ) Title: Re: Fast raw + images transfer Post by: D.Tkalcec (RTC) on December 25, 2013, 01:27:29 PM ZCompressEx function only works with a RtcByteArray. If you want to compress data from any other source using that function, you need to copy it into a RtcByteArray manually. RtcByteArray is simply an array of bytes, declared like this:
type RtcByteArray = array of byte; Best Regards, Danijel Tkalcec |