Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
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()
Join the community of 500,000 technology professionals and ask your questions.