a guest Jun 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- using (conn = new OleDbConnection(connectionstring))
- using (cmd = new OleDbCommand("SELECT PICTURE FROM HomeBased WHERE ID = @id", conn))
- cmd.Parameters.AddWithValue("@id", listers.SelectedValue);
- byte bytes = (byte)cmd.ExecuteScalar();
- picmid.BackgroundImage = Image.FromStream(new MemoryStream(bytes));
RAW Paste Data