vb.net中怎样读取oracle数据库中的blob字段并显示在Image上
vb.net中怎样读取oracle数据库中的blob字段并显示在Image上 --------------------编程问答-------------------- Dim strConnection As String = System.Configuration.ConfigurationManager.AppSettings("kksb")Dim Conn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(strConnection)
Dim strSQL As String = "select photo from t_veh_matching where picname=" & Request("picname")
Dim comm As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Dim myReader As System.Data.OleDb.OleDbDataReader = comm.ExecuteReader(CommandBehavior.SequentialAccess)
Do While myReader.Read()
' Get the publisher id, which must occur before getting the logo.
Photo = myReader.GetString(0)
以上是我的程序
最后一句报错:指定的转换无效
补充:.NET技术 , VB.NET