Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.
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()
|What's the most efficient way to load up a couple of large table in C#?||5||33|
|Add '#' to end of file||2||29|
|How do query sql to display current month date ?||15||14|
|SQL Server Update Query Streamline||4||0|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
19 Experts available now in Live!