Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.
con.Open() Dim sql As String = "INSERT INTO picture_pool VALUES(@pic_id,@photo)" Dim cmd As New SqlCommand(sql, con) cmd.Parameters.AddWithValue("@pic_id", 1) Dim ms As New MemoryStream() '''''if i dont use msgbox the image does not appear ?? MsgBox("File is Uploaded to server") PictureBox1.Image.Save(ms, PictureBox1.Image.RawFormat) Dim data As Byte() = ms.GetBuffer() Dim p As New SqlParameter("@photo", SqlDbType.Image) p.Value = data cmd.Parameters.Add(p) Try cmd.ExecuteNonQuery() Catch ex As Exception End Try con.Close()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.