RTC Forums
November 24, 2024, 12:35:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Fast raw + images transfer  (Read 4834 times)
cochise
Guest
« 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
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
Logged
cochise
Guest
« Reply #2 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 )
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 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
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 16 queries.