Use this function to retrieve image from database
Create a handler file and use this code.
Public Function ShowEmpImage(ByVal ID As Integer) As Stream
Try
con = New SqlConnection(DB.GetCon)
Dim sql As String = "SELECT top 1 Image FROM tablname WHERE ID= @ID"
Dim cmd As SqlCommand = New SqlCommand(sql, con)
cmd.CommandType = CommandType.Text
cmd.Parameters.AddWithValue("@ID", ID)
con.Open()
Dim img As Object = cmd.ExecuteScalar()
Return New MemoryStream(CType(img, Byte()))
Catch
Return Nothing
Finally
con.Close()
End Try
End Function