如何编写BLOB代码? [英] How to code for BLOB ?
本文介绍了如何编写BLOB代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为一名学生提供一张数据类型为BLOB的现场照片。
现在我想在桌面上执行添加/删除/修改操作但我不喜欢我不知道如何处理BLOB,因为我对这种数据类型一无所知。
一件重要的事情是需要使用vb6插入图片。
我尝试了一些非常糟糕的代码,例如:
I am having a table student with one field pics of data type BLOB.
Now I want to perform operations add/delete/modify on table but I don''t know how to deal with BLOB because I haven''t any idea about this data type.
One important thing is picture needs to be inserted using vb6.
I tried some very poor code for it like:
<br />
Private Sub IMAGE()<br />
Dim FILE As String<br />
FILE = App.Path ''path_name''<br />
If Picture1.Picture = Empty Then<br />
Open FILE For Binary Access Read As #1<br />
Get bytes<br />
rs("pics")<br />
<br />
End If<br />
End Sub<br />
<br />
你能帮帮我.........
Can you please help me.........
推荐答案
这些讨论可能会给你一些想法 -
h ttp://www.andreavb.com/forum/viewtopic_3523.html [ ^ ]
http://bytes.com/topic/visual-basic/insights/641546-blob-retrieve-image-stored-database [ ^ ]
These discussions might give you some ideas -
http://www.andreavb.com/forum/viewtopic_3523.html[^]
http://bytes.com/topic/visual-basic/insights/641546-blob-retrieve-image-stored-database[^]
这篇关于如何编写BLOB代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文