RTC Forums
November 24, 2024, 07:10:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Base64  (Read 5256 times)
colutti
Newbie
*
Posts: 10


« on: September 28, 2010, 07:05:08 PM »

Hello

How do i configure the Response header ContentTransferEncoding to base64?

TRtcDataServer(Sender).Response.Huh?? := 'base64'
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: September 28, 2010, 07:12:40 PM »

There are no automatic base64 encoders nor decoders when receiving and sending raw content using the TRtcDataProvider component. What you get from the Read method is raw data (no transformations applied) and what you send out is also raw content. How you encode or decode the data when using the TRtcDataProvider component is entirely is up to you. Only if you use TRtcClientModule/TRtcServerModule (remote functions) will encoding be handled automatically by the RTC components.

Best Regards,
Danijel Tkalcec
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 on: September 28, 2010, 07:24:09 PM »

By the way ... if the Client requires this, you will also need to set ...

TRtcDataServer(Sender).Response['Content-Transfer-Encoding']:='base64';

Please note that this will not make RTC SDK do the encoding for you automatically. You still need to encode the data manually before you send it out.

Best Regards,
Danijel Tkalcec
Logged
colutti
Newbie
*
Posts: 10


« Reply #3 on: September 28, 2010, 09:39:46 PM »

TRtcDataServer(Sender).Response['Content-Transfer-Encoding']:='base64'

OK .. that is what i was looking for. I know I have to encode it myself.
Thanks.

 
By the way ... if the Client requires this, you will also need to set ...

TRtcDataServer(Sender).Response['Content-Transfer-Encoding']:='base64';

Please note that this will not make RTC SDK do the encoding for you automatically. You still need to encode the data manually before you send it out.

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.024 seconds with 16 queries.