M mamaha Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-09 #1 请问诸位: bcb中如何将位图,或者 bitmap 保存进入数据库,并能够正常读取。 我试过,图像的颜色变了。 本人初来乍到,各位不吝赐教。 谢谢
L lh942901 Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-21 #2 可以用以下方法试试 TBlobStream *my; TMemoryStream *my1; my1=new TMemoryStream; my1->LoadFromFile(filename); Query1->Edit(); my =dynamic_cast<TBlobStream*>(Query1->CreateBlobStream(Query1->FieldByName("zp"),bmReadWrite)); my1->SaveToStream(my); Query1->Post(); }
可以用以下方法试试 TBlobStream *my; TMemoryStream *my1; my1=new TMemoryStream; my1->LoadFromFile(filename); Query1->Edit(); my =dynamic_cast<TBlobStream*>(Query1->CreateBlobStream(Query1->FieldByName("zp"),bmReadWrite)); my1->SaveToStream(my); Query1->Post(); }