procedure TForm1.FlatButton1Click(Sender: TObject);
var
MS: TMemoryStream;
begin
OpenPictureDialog1.Execute;
image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);
MS:=TMemoryStream.create;
ms.LoadFromFile(OpenPictureDialog1.FileName);
MS.Position:=0;
AdoTable1.append;
adotable1.FieldByName('number').Value := '1';
adotable1.FieldByName('place').Value:= 'beijing';
TBlobField(ADOTable1.FieldbyName('photo')).LoadFromStream(MS);
AdoTable1.Post;
end;