RTC Forums
May 05, 2024, 07:26:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Problem with ByteStream parameter in XMLRPC format (3.83)  (Read 4005 times)
TII
RTC License++
*****
Posts: 2


« on: May 27, 2010, 11:18:13 AM »

Hi Danijel,

I have upgraded to SDK 3.83 and now I have a problem with ByteStream parameters in TRtcFunction calls (with previous SDK 3.38, there was no problem).
I send a small file using a ByteStream parameter with a TRtcFunction call. The data received by the server are different from those sent by the client (in fact only the last byte is wrong, the first call is ok but after its wrong).
The problem occurs only with XMLRPC dataformat, all is fine with RTC format.

My code is something like that (the real code is more complicated, but this code reproduce the problem):

client side:
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
  S: TMemoryStream;

begin
  with RtcClientModule1 do
  begin
    with Data.NewFunction('test') do
    begin
      S := TMemoryStream(NewByteStream('Data'));
      S.LoadFromFile('Send.dat');
      Execute;
    end;
  end;
end;

server side:
Code:
procedure TForm1.RtcFunction1Execute(Sender: TRtcConnection; Param: TRtcFunctionInfo; Result: TRtcValue);
begin
  TMemoryStream(Param.AsByteStream['Data']).SaveToFile('Receive.dat');
end;

I sent you a Delphi project reproducing the problem at devsupport@realthinclient.com

Best regards,
Michaël
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: May 27, 2010, 12:20:56 PM »

Thank you for reporting this issue. I think I've found and fixed the problem. I've sent you an E-Mail with a direct download link for the next RTC SDK nightly build release (389), please download it and let me know if it works.

Best Regards,
Danijel Tkalcec
Logged
TII
RTC License++
*****
Posts: 2


« Reply #2 on: May 27, 2010, 01:55:36 PM »

Hi Danijel,

I've try your new version and it works well.

Thank you very much for the correction and for the quick response !

I work with RTC for some years and it's the first time I meet a problem.
Keep up the good work.

Best regards,
Michaël
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: May 27, 2010, 02:10:34 PM »

Thank you very much for your feedback, I'm glad the problem has been resolved.

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.