如何利用QueryDataSet操作Blob字段?困扰已久,解决后一定高分相赠。

cswei1021 2005-05-11 01:36:01
我用的是Oracle 9i,JB2005。
问题是这样的:QueryDataSet中只要包含了Blob字段,则QueryDataSet根本无法打开。qds.open()时,报如下错误:
See com.borland.dx.dataset.DataSetException error code: BASE+62
com.borland.dx.dataset.DataSetException: Execution of query failed.
...............
Chained exception:
java.lang.NumberFormatException: For input string: "4294967295"
...............
在下怀疑与QDS的相关设置有关,但网上资料很少,一直无法解决,望高手指定在下,一定不胜感激!!!!!
QQ:3766369
PoPo:cswei1021
Email:cswei1021@163.com
请高手不要手下留情啊!!!

...全文
204 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
cswei1021 2005-05-11
  • 打赏
  • 举报
回复
我在Borland的社区中找到了如下的类似问题解答,但问题说的是如何保存Blob字段,可我连包含Blob字段的QDS都无法打开,如何进一步操作呢?唉。。。高手帮帮忙吧。。。。
-------------------
Question:
I'm having problems with BLOB fields. I can't save them nor
can I change them. Any hints?

Answer:
Turns out there are several different behaviours/requirements
from various SQL servers for searched updates on blob fields
like VARCHAR. BDE sql links will not include such fields in
the where clause of a searched update. We will probably make
this same change in the future.

There are three possible solutions for now (number 1 or 2 are
more desirable):

1) Set the QueryResolver.UpdateMode property to
UpdateMode.KEY_COLUMNS. QueryResolver component must be
added to QueryDataSet's container and set on the QueryDataSet's
Resolver property.

2) Before calling Database.saveChanges(), set the
Column.Searchable property to false. This must always be done
after the QueryDataSet's query is run (from QueryDataSet.open()
or QueryDataSet.executeQuery()) method because the
Column.searchable property will be overridden by metadata
inspection when the query is run.

3) Set QueryDataSet.MetaDataUpdate to NONE. This forces you to
set all the appropriate metadata info on the column
component including Column.RowId, and Column.Searchable
properties.
-------------------------
cswei1021 2005-05-11
  • 打赏
  • 举报
回复
补充一下:是否应该用Data Express的其他控件来操作Blob字段,而不一定是QueryDataSet?
随着通信电子技术的迅速发展,信息技术给家居行业产生了深远的影响,家居环境的智能化监控已经成为智能家居的一个重要的发展方向。人们逐渐对自己的生活提出一种更高的要求,他们需要一种智能化、可交互,并且融合现代创新科技的产品来改善他们的生活环境,使他们生活更加安全、舒适、便捷、智能。本文根据智能家居的发展背景和研究现状,并且从实用性和可行性角度出发,研究设计了一种基于STM32单片机的智能家居系统。该系统由一个多功能综合的技术系统组成,各个多功能子系统间具有协同配合能力。基于STM32单片机实现的功能子系统包括:智能温度检测,智能湿度检测,智能烟雾/火灾检测智能检测,无线传输,人机交互机构,风扇调节,报警模块。 整个系统分为前端51单片机采集板和后端STM32单片机接收板。 采集板使用DHT11温湿度传感器、MQ烟雾传感器完成室内家居环境的采集。然后通过nRFL24L01将采集到的数据发送给后端。接收板使用LCD1602完成数据显示、使用蜂鸣器模块报警,使用风扇驱动模块调节室内家居环境。本文完成了智能家居控制系统前端、后端软硬件的设计,使用Altium designer绘制了电路原理图,使用Keil C完成了51单片机和STM32单片机的编程与调试。 最后,对本文设计的基于STM32的智能家居控制系统进行部署调试。试验结果表明,该系统可成功应用在智能家居环境检测调节和火灾安全防护的领域,可提高家居生活智能化水平。

51,408

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧