RTC Forums
November 25, 2024, 02:30:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How can i send binary data TrtcConnection  (Read 5192 times)
yoda
Newbie
*
Posts: 3


« on: May 08, 2010, 04:17:11 PM »

How can i send binary data with TrtcTcpServer ?
TrtcConnection was only one method to send data, method write( s:Ansistring ).
How can i sen send binary data ?

thanks in advance !!
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: May 08, 2010, 04:23:35 PM »

1) Always use HTTP/S-based components from the RTC SDK (TRtcHttpClient/TRtcMessageClient & TRtcHttpServer/TRtcISAPIServer). There is NO support for using binary TCP/IP or UDP transports.

2) The Read as well as the Write method do not care about what is being sent. To send binary data, simply copy it over into an AnsiString. There are no string transformations nor conversions made on raw data sent or received using Read and Write methods in the RTC SDK.

Best Regards,
Danijel Tkalcec
Logged
yoda
Newbie
*
Posts: 3


« Reply #2 on: May 08, 2010, 04:33:50 PM »

Wow !!    The fastest support i ever seen especially in free support ( less than a minute ).

Thanks Daniel.

I will try another solution.

Logged
yoda
Newbie
*
Posts: 3


« Reply #3 on: May 08, 2010, 07:43:52 PM »

You are right !! sending data after copying to ansistring works fine .

Thanks again.
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.