btnsave () Try Dim mstream as New System.IO.MemoryStream () PictureBox1.Image.Save(mstream, System. Drawing.Imaging.ImageFormat.Jpeg) Dim arrImage() As Byte = mstream. GetBuffer() sql = " Insert into Picture (Pic) & _ "Values(@pic)" Connect() cmd = new OledbCommand (sql,conn) cmd.parameters.Addwithvalue("pic", arrImage) cmd.ExecuteNonQuery() Catch ex As Exception MsgBox (ex.Message) End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)