What am I doing wrong?????
Dim oSQLConn As SqlConnection = New SqlConnection()
Dim dr As SqlDataReader
oSQLConn.ConnectionString = ConnString
Dim strSQL As String
Get Items..
strSQL = "SELECT object FROM images where type = logo2"
oSQLConn.Open()
Dim cmd As New SqlCommand(strSQL, oSQLConn)
dr = cmd.ExecuteReader
dr.Read()
picLogo.Image = Nothing
MsgBox(dr.Item("type"))
Dim bytImageData() As Byte = dr.Item("object")
Dim stmImageData As New MemoryStream(bytImageData)
picLogo.Image = Image.FromStream(stmImageData)
Dim oSQLConn As SqlConnection = New SqlConnection()
Dim dr As SqlDataReader
oSQLConn.ConnectionString = ConnString
Dim strSQL As String
Get Items..
strSQL = "SELECT object FROM images where type = logo2"
oSQLConn.Open()
Dim cmd As New SqlCommand(strSQL, oSQLConn)
dr = cmd.ExecuteReader
dr.Read()
picLogo.Image = Nothing
MsgBox(dr.Item("type"))
Dim bytImageData() As Byte = dr.Item("object")
Dim stmImageData As New MemoryStream(bytImageData)
picLogo.Image = Image.FromStream(stmImageData)