Пример #1
0
        private void InsertImageToDB(byte[] data)
        {
            string query = "Update Categories";

            Dictionary <string, object> parametters = new Dictionary <string, object>();

            parametters.Add("Picture", data);

            SqlProvider.ExecuteSqlQueryUpdate(query, parametters, delegate(SqlDataReader reader)
            {
                grdResult.DataSource = reader;
                grdResult.DataBind();
            });
        }