图片显示为什么这么怪!!!
1. 加入图片
blob lb_object
string ls_path,ls_filename
GetFileOpenName("select file to open",ls_path,ls_filename)
If ls_filename ="" Then return
If ole_1.insertfile(ls_path) = 0 Then
lb_object = ole_1.objectdata
End If
SQLCA.AutoCommit = True
UpdateBLOB abc set dryzp = :lb_object
WHERE dry_n= "1";
if SQLCA.SQLCode = -1 then
MessageBox("SQL error",SQLCA.SQLErrText,Information!)
rollback using sqlca;
return
end if
commit using sqlca;
sqlca.autocommit = FALSE
2.显示图片
LOB lb_pic
SELECTBLOB dryzp INTO :lb_pic
FROM abc
WHERE dry_n = "1";
if SQLCA.SQLCode = -1 then
MessageBox("SQL error",SQLCA.SQLErrText,Information!)
return
else
ole_2.objectdata = lb_pic
end if

