or atleast to fix this code
Imports MySql.Data.MySqlClient
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim con As New MySqlConnection()
Dim cmd As New MySqlCommand
Dim adptr As New MySqlDataAdapter
Dim table As Image
con.ConnectionString = "SERVER=localhost;UID=root;PWD=israel;DATABASE=testing"
adptr = New MySqlDataAdapter("SELECT PICTURE FROM brgyemployee WHERE Fname= '" & TextBox1.Text & "'", con)
adptr.Fill(table)
Dim i As Integer
PictureBox1.Image = PictureBox1.Image & "" & table.Rows(i)("PICTURE")
End Sub
End Class
underlined codes gives me errors, this one is for loading the image from database in
PictureBox1.Image