pb10如何用ole控件显示blob变量的内容

来源:百度知道 编辑:UC知道 时间:2024/06/10 05:21:22
程序部分代码如下:
blob lb_file
string ls_id
sqlca.autocommit = true
selectblob file into :lb_file from table_file
where table_file.id = :ls_id;
sqlca.autocommit = false
ole_1.activate(offsite!)
ole_1.objectdata = lb_file

//************************

//程序运行后提示

//Application terminated

//Bad runtime function reference
****"ole_1.objectdata = lb_file"****这一行的错误

请问各位高手,哪里出了错啊。

注:
1.数据库为oracle 9i
2.lb_file变量肯定从数据库中取出数据了

看你的blob存储的是什么类型的,如果是图片:
p_1.SetPicture(lb_file )
你用ole控件接收可能不行

在PB安装文件中找到pbodb100.ini文件,打开,找到其中所有的 PBMaxBlobSize 项,将 32767 改成 0,就可以啦!