procedure TForm1.btnTargetClick(Sender: TObject);
var
sFileName:String;
function BlobContentToString(const FileName:String):String;
begin
with TFileStream.Create(FileName,fmOpenRead) do
try
SetLength(Result,Size);
Read(Pointer(Result)^,Size);
finally
Free;
end;
end;
begin
if (OpenDialog1.Execute) then
begin
sFileName:=OpenDialog1.FileName;
ADODataSet1.Edit;
ADODataSet1.FieldByName('c').AsString:=
BlobContentToString(sFileName);
ADODataSet1.Post;
end;
end;