June 19th, 2013, 06:39 AM
I have a dataset which reads the data from TMemo.lines. I wanted it to be saved back to the data base. I use the below code to do it. I did not get any error message but the data from the Tmemo is not getting saved to DB. Please help to fix this.
MEMO has line like :
I use the below code to write the data back to DB.
dmMain.dsetTemplates.FieldByName('TEMPLATE_BLOB').AsString := Memo1.Lines.Text;
This code gets executed fine but when i check the database i do not have XXX YYY ZZZ updated back to DB
June 25th, 2013, 12:44 PM
Hi I want to transfer the database memo...
procedure TForm11.Button1Click(Sender: TObject);
for i:=0 to memo1.lines.count - 1 do
June 28th, 2013, 09:33 AM
I believe that TEMPLATE_BLOB field is a BLOB field. If that is really the case, you should use TBlobStream to put your data to that field.
Originally Posted by Lapni
See my tutorial to see how to work with TBlobStream to store and retrieve Blob data from database.
Last edited by Luthfi; June 28th, 2013 at 09:37 AM.