vb.net读取mssql的image字段后,如何转换成二进制

huwenbin21 huwenbin21 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

mssql数据库字段是image(数据格式),用代码读取出来:

     Dim cmd As String = "select * from spimg where Banks='" & MainForm.Banks & "' and  UsName='" & Trim(TD19.Text).Split("、")(s) & "'"
                                Dim myComm As SqlCommand = New SqlCommand(cmd, conn)
                                Dim dr As SqlDataReader = myComm.ExecuteReader
                                If dr.Read Then

dr("Img") 读取字段

                                End If
                                dr.Close()

读取出来以后,怎么转换成void LoadFromMemory(byte *pBuffer, int ByteCount) 二进制字段?

...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
huwenbin21
VB 16,718 成员 110,520 内容