从SQL SERVER 数据库中读取image 类型的数据为byte[ ],怎么做?
_三皮_ 2006-02-17 04:00:00 sele="SELECT result1 FROM IWCResult1,IWCResult2 WHERE (ResultID = 386)";
Object yy;
try
{
string myConnectionString="Data Source=192.168.10.05; user id=sa; password=password;database=InstaFormContent";
SqlConnection sqlConnection1 = new SqlConnection(myConnectionString);
sqlConnection1.Open();
SqlCommand sqlSelectCommand1=new SqlCommand (sele,sqlConnection1 );
//读取image类型数据为byte[],IWCResult1,IWCResult2 为image类型
sqlConnection1.Close();
sele=null;
}
catch
{
MessageBox.Show("c");
}