执行屏幕如何存储和访问特定行的 BLOB?
带有 INFORMIX-SQL 的 IDS 执行屏幕:
假设我要使用执行添加一个新的客户行。我想扫描客户的驾驶执照并将该图像与客户的个人信息一起存储。这是如何完成的?...后来,客户回来了,我查询了他的个人信息。然后我想查看客户的驾驶执照。执行者如何知道在哪里可以找到并显示客户的驾驶执照?
IDS with INFORMIX-SQL Perform Screens:
Let's say I'm adding a new customer row with perform. I want to scan the customers drivers license and store that image along with the customers personal info. How is this accomplished?.. Later on, the customer returns and I query his personal info. Then I want to view the customers drivers license. How does perform know where to find and display that customers drivers license?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 IDS 9.x 或更高版本,则您有 BLOB 或 CLOB blob 以及 BYTE 和 TEXT blob。如果您使用 OnLine 4.00 或更高版本(但在 IUS 9.00 之前),您将只有 BYTE 和 TEXT blob。
ISQL 或多或少可以处理 TEXT blob;根据命令,它将在包含 TEXT blob 数据的文件上启动您选择的程序,并在完成 INSERT(添加)或 UPDATE 操作时将该文件的内容保存回数据库。 ISQL 还将在屏幕上显示 TEXT blob 的前几行。
ISQL 只能部分处理 BYTE blob。它可以在包含 BYTE blob 值的文件上运行您指定的程序,但无法显示文件的内容(这并非完全不合理;它是/曾经是为基于 Curses 的绿屏终端设计的,并且它们并不因高质量彩色位图图形而臭名昭著)。
AFAIK,ISQL 根本无法处理 BLOB 或 CLOB 列。
如果您想要显示驾驶执照的图像,您必须决定如何扫描、存储和显示图像。虽然您可以启动程序以在位图屏幕上显示许可证图像,但您不再严格使用 ISQL。类似的评论也适用于 I4GL。 ISQL 和 I4GL 都无法真正显示位图图像。
(我第一次接触 OnLine 和 BYTE/TEXT blob 是为英国“Which 1990”计算机展编写一个演示应用程序,用于显示运行在 SunOS 上的 I4GL 程序的图片图像。)
If you are using IDS 9.x or later, you have BLOB or CLOB blobs as well as BYTE and TEXT blobs. If you are using OnLine 4.00 or later (but prior to IUS 9.00), you will have BYTE and TEXT blobs only.
ISQL can more or less handle TEXT blobs; on command, it will launch the program of your choosing on a file containing the TEXT blob data, and will save the contents of that file back to the database when you complete the INSERT (Add) or UPDATE operation. ISQL will also display the first few lines of the TEXT blob on the screen.
ISQL can only partially handle BYTE blobs. It can run the program you designate on a file containing the value of the BYTE blob, but it cannot display the content of the file (which is not wholly unreasonable; it is/was designed for curses-based green-screen terminals, and they are not notorious for high quality colour bitmap graphics).
ISQL cannot handle BLOB or CLOB columns at all, AFAIK.
If you want to display the image of a driver's licence, you will have to decide how the image is scanned, stored, and displayed. While you might be able to launch a program to show the licence image on a bitmap screen, you're no longer strictly within ISQL. Similar comments apply to I4GL. Neither ISQL nor I4GL can truly display bitmap images.
(My first encounter with OnLine and BYTE/TEXT blobs was writing a demo application to display images of pictures from an I4GL program running on SunOS - for the UK 'Which 1990' computer show.)