PLZ,任何人都可以在这段代码中提供帮助吗?
string imagename="test.png";
string imagepath=Server.MapPath("\\images");
SqlConnection con = new SqlConnection();
SqlConnectionStringBuilder S = new SqlConnectionStringBuilder("data source=hima-pc\\sql8;initial catalog=test; integrated security= True;pooling=false ");
con.ConnectionString = S.ConnectionString;
con.Open();
string sqlcon = "insert into images(imgname,imgpath)values("+imagename+","+imagepath+")";
SqlCommand myCom = new SqlCommand(sqlcon,con);
int numrow = myCom.ExecuteNonQuery();
con.Close();
请我需要将图像的路径保存在我的数据库中但没有上传文件我的图像已经在服务器的文件夹中