#1 2018-06-08 08:30:12

Dimitri
Member
Registered: 2018-06-08
Posts: 5

TSQRawBlob property between a mORMmot server and an Android client

Hi,

I would like to transmit a TSQLRawBlob property between a mORMmot server and an Android client.
On the one hand I use the TSQLRawBlob defined in the unit mORMot.pas on the other hand I use the TSQLRawBlob defined in the unit SynCrossPlatformREST.pas.

To set the RTTI property in the server I do :

lPropInfo := ClassFieldPropWithParents(aDest.ClassType, aPropertyName);
if Assigned(lPropInfo) then
begin
  lPropInfo^.SetFromVariant(aDest, aValue);
end;

How can I do the same in my Android application without the ClassFieldPropWithParents and SetFromVariant methods ?

Thx

Last edited by Dimitri (2018-06-08 08:30:40)

Offline

#2 2018-06-08 09:55:10

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

Re: TSQRawBlob property between a mORMmot server and an Android client

I don't fully understand your point, since using the RTTI is not needed with SOA.

If you have troubles with blob encoding, use RawUTF8 fields/parameters, and base-64 encoding (there will be base-64 encoding anyway).
Or consider using a method-based service for blob/binary client-server process (the preferred way).

Offline

#3 2018-06-11 07:01:43

Dimitri
Member
Registered: 2018-06-08
Posts: 5

Re: TSQRawBlob property between a mORMmot server and an Android client

Ok, thank you.

Offline

Board footer

Powered by FluxBB