Well, seems your issue is: how to convert image to byte array and vice versa...
You can use these functions:
Public Function imgToByteArray(ByVal img As Image) As Byte()
Using mStream As New MemoryStream()
img.Save(mStream, img.RawFormat)
Return mStream.ToArray()
End Using
End Function
Public Function byteArrayToImage(ByVal byteArrayIn As Byte()) As Image
Using mStream As New MemoryStream(byteArrayIn)
Return Image.FromStream(mStream)
End Using
End Function
More at:
Convert Image to Byte Array and Byte Array to Image c# , VB.Net[
^]
Usage:
Dim Dgambar As Byte() = imgToByteArray(PictureBox1.Image)
Dim img As New SqlParameter("@Gambar", Dgambar)
img.Value = Dgambar
Cmd.Parameters.Add(img)
Cmd.ExecuteNonQuery()