Hi all,
I have a table with two fields, Id (integer) and flag (varbinary)
I'm looking for a code to be able to load both fields to its own controls in a form.
I'been searching along the web but for a varbinary field I only found exclusive code for this field but not for both fields like this:
Dim imageData As Byte() = DirectCast(cmd.ExecuteScalar(), Byte())
If Not imageData Is Nothing Then
Using ms As New MemoryStream(imageData, 0, imageData.Length)
ms.Write(imageData, 0, imageData.Length)
PictureBox1.BackgroundImage = Image.FromStream(ms, True)
End Using
End If
How can I do if I want to get common fields from my table with the image at the same time , is this possible?
thanks again for your time and quick help