I can upload the master records to the central database ok using XML and streams. ie
Code: Select all
procedure AddMySQL;
var
BStream: TStream;
begin
qryDest.insert;
qryDest.FieldByName('DATE_UPDATED').AsDateTime := Now;
BStream := qryDest.CreateBlobStream(qryDest.FieldByName('DATA'), bmWrite);
try
qrySource.SaveToXML(BStream);
finally
BStream.Free;
end;
qryDest.post;
end;
the question is - how do I get the XML back, convert it to the appropriate fields and add it to the Source table?
There does not seem to be a Method in UniQuery to do this. ie query.LoadFromXML(stream)
Please note - I do not want to load the whole table - just the one record.