1.我用的是ACCESS数据库
里面有一字段的类型为BLOB,
我想把数据库中的这一字段的图片读出来显示
在报表中.怎么办呀?.
2。图片的类型为BMP的我的ACCESS数据库中的内容读到
DBGRID中了.我想修改其中记录的图片,就是重新指定图片.
我该如何做呀.这个问题困扰了我很多天.看了很多资料.能
加入到数据库中图片.,其余我就做不到了.(当然类型还是BLOB的了)
初学呀,很着急.做了一个小软件.明天要交的.各位高手指点一
下吧?让我增强点信心.我将不胜感激.

解决方案 »

  1.   

    1.用Data Controls页下的TDBImage控件,连上TDataSource,指定Field就能显示了
    2.在TDBImage可直接通过复制粘贴改变,添加。TDBImage represents a graphic image from a BLOB (binary large object) field of the current record of a dataset.
    While the application is running and the database image control has focus, users can cut, copy, and paste using the standard Windows accelerator keys (Ctrl+X, Ctrl+C, and Ctrl+V). Users can return to the original state of the database image control by pressing Esc before moving to another record.