#1 2021-03-27 09:26:25

ianxevcd
Member
Registered: 2016-07-04
Posts: 11

soa method with T*ObjArray parameter and blob field

Hi,
I have defined
  TOrmList = class(TOrm)
  private
    fName: RawUTF8;
    fData: TSQLRawBlob;
  published
    property Name: RawUTF8 index 2048 read fName write fName;
    property Data: TSQLRawBlob read fData write fData;
  end;
and service with the following method:
function GetList(var List: T*ObjArray; const ParentID: TID): boolean;
begin
  result := Server.RetrieveListObjArray(List, TOrmList, 'ID=?', [ParentID], '*');
end;

When I call this service method on client I get List w/o Blob data. If I define function to return T*ObjArray it returns array with blob data.
I thought the correct way is to get such list via var parameter. Do I something wrong?

ps. I use mormot2 and FPC 3.2.1


Alexander

Offline

#2 2021-03-27 09:29:05

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

Re: soa method with T*ObjArray parameter and blob field

It is not directly supported yet, to save bandwidth, I guess.
Try to use a DTO record.

Offline

Board footer

Powered by FluxBB