hi guys, I would be grateful if anyone could help me on how I could display image from database. The images are saved in the db under categories, so I have a textbox which during the textcahnge display all categories having that text and display in a listbox, and I use bindingsource to filter the images according to the category selected from the listbox and the first image display and I use buttons to navigate forward and backwards but I have been struggling with how to display the filtered image from the bindingsource, so I would be grateful if anyone could help. I use the code below to display just one image but now would like to filter images under category and navigate through.
Awaiting your responds. ThanksCode:Private Sub ShowLabels() Dim arrPicture() As Byte = _ CType(dsLabels.Tables(0).Rows(cboLabels.SelectedIndex)("LabelImage"), _ Byte()) Dim ms As New MemoryStream(arrPicture) With picImage .Image = Image.FromStream(ms) .SizeMode = PictureBoxSizeMode.Zoom End With End Sub




Reply With Quote