图片上传到数据库
摘要:
protected void btnAdd_Click(object sender, EventArgs e) { string connstr = "data source=连接到计算机;initial catalog=student;User Id=sa;password=123"; using (SqlConnection conn = new SqlConnection(connstr)) { conn.Open(); using (SqlCommand cmd = conn.CreateCommand()) { //获得图象并把图象转换为byte[] HttpPo 阅读全文
posted @ 2013-01-04 21:59 高级菜鸟 阅读(149) 评论(0) 推荐(0) 编辑