S
SAZNA
Unregistered / Unconfirmed
GUEST, unregistred user!
OpenCon();//连接数据库
sqlStmt = "select * from pic where picid=035101000023";
SqlCommand mycommand=new SqlCommand(sqlStmt,sqlCon);
SqlDataReader dr;
dr=mycommand.ExecuteReader();
if(dr.Read())
{
Response.ContentType="image/jpeg";
Response.BinaryWrite((byte[])dr["Picdate"]);
}
CloseCon();
上面是从数据库中读取数据并显示的代码,运行后显示SYSTEM.BYTE[]
请问是哪里出了问题,谢谢
sqlStmt = "select * from pic where picid=035101000023";
SqlCommand mycommand=new SqlCommand(sqlStmt,sqlCon);
SqlDataReader dr;
dr=mycommand.ExecuteReader();
if(dr.Read())
{
Response.ContentType="image/jpeg";
Response.BinaryWrite((byte[])dr["Picdate"]);
}
CloseCon();
上面是从数据库中读取数据并显示的代码,运行后显示SYSTEM.BYTE[]
请问是哪里出了问题,谢谢