I am new in vb.net. The image has been stored in sql server as <binary data> and i dont know how to convert it to display in picture box.Please tell me what are the changes should i made to get it to work.Here is the code which i have done so far
Imports System.Data.SqlClient
Imports System.Data
Public Class Edit_Employee
Dim str As String = "Data Source=NET3\SQLEXPRESS;Initial Catalog=restpos;Persist Security Info=True;User ID=sa;Password=password"
Dim ds As New DataSet
Dim adp As New SqlDataAdapter
Dim con As New SqlClient.SqlConnection
Private Sub Edit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
adp = New SqlDataAdapter("select Emp_Image from Employees where Emp_UserId=106",con)
con.ConnectionString = str
adp.Fill(ds)
PictureBox1.Image = ds.Tables(0).Rows(0)
End sub
End Class