string StrSql = "select b_blob,ct_type,ct_name from T_MIS_BLOB where CT_ID='" + id + "' ";
SqlCommand MyCom = new SqlCommand(StrSql, myconn);
myconn.Open();
SqlDataReader dt = MyCom.ExecuteReader();
dt.Read();
byte[] buffer = (byte[])dt[0];
string DocType = dt[1].ToString();
string fileName = dt[2].ToString() + DocType.ToString();
myconn.Close();
温馨提示:答案为网友推荐,仅供参考