I am trying to save a picture to database:
I am getting an error on this line:
Dim stream As New MemoryStream()
PictureBox1.Image.Save(stream, Imaging.ImageFormat.Png)
Is there a direct way to save a picture to memory stream without having to put it in picture box and then save it to the memory stream from the picture box?