|
int imgid = 5;
string sql = "SELECT * FROM ImageStore WHERE ImageID = '"+ imgid+"'";
string connstr="Server=127.0.0.1;database=yujinsheng;uid=sa;Pwd=sa;";
SqlConnection connection = new SqlConnection(connstr);
SqlCommand command = new SqlCommand(sql, connection);
connection.Open();
SqlDataReader dr = command.ExecuteReader();
if (dr.Read())
{
Response.BinaryWrite((byte[])dr["ImageDate"]);
}
怎么显示呀!求教各位大侠!
发表于 @ 2007年10月30日 10:01:00|评论(loading...)|编辑|收藏
|