Hi,
How to return a Lazy Blob from a datasnap rest server?
function TSMUserX.RemoteBlobLoad(JsonBlobInfo: TJsonValue): TJsonValue;
begin
XSerializer := TDataSnapJsonSerializer.Create;
XDeserializer := TDataSnapJsonDeserializer.Create;
try
ProxyInfo := XDeserializer.BlobInfoFromJson(JsonBlobInfo);
Result :=XSerializer.TOJSON( FManager.BlobLoad(ProxyInfo));//How To do that???
finally
XSerializer.Free;
XDeserializer.Free;
end;
end;
I belive some time ago i return a Stream using property Data, but in this version this was chenged.
What type should i return (TStream, Tarray, TJSONValue, etc)
thanks