You are not logged in.
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
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
Ok, thank you.
Offline