#1 2014-11-19 17:46:34

nirnir
Member
Registered: 2013-11-11
Posts: 66

Extend TServiceCustomAnswer

can TServiceCustomAnswer be extended to return more then one binary object ?
I need the orm server to return record which contains more fields in addition to the blob one.

Is there other ways to make the server return mixed data ?
if , for example I have a response record  like

TResponseRecord = record
   blob1:RawByteString;
   blob2:RawByteString;
   simpleString:string;
   number:integer;
end;

maybe   should be another   layer which pack TResponseRecord   into TServiceCustomAnswer on the server side and extract it back to TResponseRecord on the client side  ?

Offline

#2 2014-11-19 20:54:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Extend TServiceCustomAnswer

IMHO this is up to you to encode and decode the binary blob transmitted.

You could simply use RecordSave() and RecordLoad() from SynCOmmons.pas to to the job.

Offline

Board footer

Powered by FluxBB