example of blob to store files lazarus / 16-Databases ---------------------------------------------------------------------- davel · 2006-02-23 05:33 Hi can anyone point me in the direction of an example of how to use the SQLdb package to read and write blobs out of a database. I am using firebird and lazarus 0.9.12 and I cannot seem to find any examples. Any help would be great thanks Dave ---------------------------------------------------------------------- JanH · 2006-02-24 08:21 Hi, a few month ago I tried to use a memo blob field in my app. But there was an incorrect handling in TBufDataSet (or something). So I decide to use a large VARCHAR-field to store my data. I don't know if the error is repaired now. I used the blob field with this code: Code: [Select] Query.FieldByName('blobfield').Value := Memo.Lines.Text; //set Memo.Lines.Text := Query.FieldByName('blobfield').Value; //read out ---------------------------------------------------------------------- davel · 2006-02-24 10:33 Hi JanH       Thanks for the info. I will do some experimenting with it. I am trying to store different types of files from jpeg to word documents. davel ---------------------------------------------------------------------- Gintas · 2011-04-13 22:15 I wonder how easily add any files into dBase datbases: Code: [Select]uses jpeg;  ...  image := TJPEGImage.Create;  To record images on Database:  TADOQuery.Append;  TBlobField(TADOQuery.FieldByName(image')).Assign(i mage);  TADOQuery.Post; I found some Delphi code,but can't get it to work with TDbf components.