J jyjsjxsy Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-20 #1 [blue][/blue]数据库中,图形文件怎样存储呀?例如:在做人事管理时,头像,文件扫描件, 怎样存入数据库?
Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-20 #3 (TableStaffsEx.FieldByName('Photo') as TBlobField).LoadFromFile('a.bmp');
晴 晴 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-20 #5 ... table.Append; (tblobfield(table.FieldByName('Imagfield'))).LoadFromFile('e:/a.tmp'); ...
雪 雪中漫步 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-20 #6 In the example below, the Assign method is used to copy the bitmap from a TImage component into a BLOB field through its TBlobField field object: if not (ClientDataSet1.State in [dsInsert, dsEdit]) then ClientDataSet1.Insert; ClientDataSet1Images.Assign(Image1.Picture); ClientDataSet1.Post;
In the example below, the Assign method is used to copy the bitmap from a TImage component into a BLOB field through its TBlobField field object: if not (ClientDataSet1.State in [dsInsert, dsEdit]) then ClientDataSet1.Insert; ClientDataSet1Images.Assign(Image1.Picture); ClientDataSet1.Post;