M
Michael Persaud
hi all
pls help me here. I am trying to retrieve images from a sql srv and want to
populate a datagrid with the image or a picture box equivalent. after
running the sqlcmd it may return many pics and i need them to be listed in
as pic inwhatever format. The image is stored as image type.
i click a button which calls the following
Private Sub DoLoadImage()
Dim SubCatID As String
SubCatID = SubCategoryList.SelectedItem.Value.ToString()
Dim stringSql As String = "select imid,Images,Description from
AllData where SCId=" + SubCatID
Label1.Text = stringSql
Dim cmd As New SqlClient.SqlCommand(stringSql, DisplayCon)
DisplayCon.Open()
Dim ds As New DataSet
AllDataDA.Fill(ds)
DataGrid1.DataSource = ds
DataGrid1.DataBind()
DisplayCon.Close()
End Sub
I get the grid with all the other data except the "BLOB".
PLS HELP
THanks
MP
pls help me here. I am trying to retrieve images from a sql srv and want to
populate a datagrid with the image or a picture box equivalent. after
running the sqlcmd it may return many pics and i need them to be listed in
as pic inwhatever format. The image is stored as image type.
i click a button which calls the following
Private Sub DoLoadImage()
Dim SubCatID As String
SubCatID = SubCategoryList.SelectedItem.Value.ToString()
Dim stringSql As String = "select imid,Images,Description from
AllData where SCId=" + SubCatID
Label1.Text = stringSql
Dim cmd As New SqlClient.SqlCommand(stringSql, DisplayCon)
DisplayCon.Open()
Dim ds As New DataSet
AllDataDA.Fill(ds)
DataGrid1.DataSource = ds
DataGrid1.DataBind()
DisplayCon.Close()
End Sub
I get the grid with all the other data except the "BLOB".
PLS HELP
THanks
MP