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:
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:
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.comBest regards,
Michaël