Z zhao min Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-12 #1 我想要对BLOB字段进行写入和读出的操作,但不知道用什么方法,如有 大虾知道请告知.thanks! 我的BLOB要放约1.5K左右的二进制数据,所用的数据库是PARADOX.
H houyg Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-12 #2 用TBlobStream来进行读写操作: 读取: var AStream : TBlobStream; YourData:integer; AStream := TBlobStream.Create(TBlobField(YourBlobField)); AStream.Read(YourData,SizeOf(YourData)); AStream.Free; 写入与读取差不多,只是要用AStream.Write而已。
用TBlobStream来进行读写操作: 读取: var AStream : TBlobStream; YourData:integer; AStream := TBlobStream.Create(TBlobField(YourBlobField)); AStream.Read(YourData,SizeOf(YourData)); AStream.Free; 写入与读取差不多,只是要用AStream.Write而已。
H houyg Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-12 #3 用TBlobStream来进行读写操作: 读取: var AStream : TBlobStream; YourData:integer; AStream := TBlobStream.Create(TBlobField(YourBlobField)); AStream.Read(YourData,SizeOf(YourData)); AStream.Free; 写入与读取差不多,只是要用AStream.Write而已。
用TBlobStream来进行读写操作: 读取: var AStream : TBlobStream; YourData:integer; AStream := TBlobStream.Create(TBlobField(YourBlobField)); AStream.Read(YourData,SizeOf(YourData)); AStream.Free; 写入与读取差不多,只是要用AStream.Write而已。