RTC Forums

Subscription => Support => Topic started by: yoda on May 08, 2010, 04:17:11 PM



Title: How can i send binary data TrtcConnection
Post by: yoda 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 !!


Title: Re: How can i send binary data TrtcConnection
Post by: D.Tkalcec (RTC) 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


Title: Re: How can i send binary data TrtcConnection
Post by: yoda 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.



Title: Re: How can i send binary data TrtcConnection
Post by: yoda on May 08, 2010, 07:43:52 PM
You are right !! sending data after copying to ansistring works fine .

Thanks again.