从数据库中取出IMAGE类型的文件
代码如下:using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.IO;
using System.Web.Security;using kenfil.com.public_functions;
using kenfil.com.ADS;
namespace ADS_DOTNET.ADS.an_maintenance
{
/// <summary>
/// Summary description for an_doc_maintenance_show.
/// </summary>
public class an_doc_maintenance_show : System.Web.UI.Page
{ private public_functions pfs;
private ADS_Interface ads;
protected System.Web.UI.WebControls.Label lab_message;
public string ADT_Doc_Recno=null; private void Page_Load(object sender, System.EventArgs e)
{
ads=new ADS_Interface();
pfs=new public_functions(); 
SqlDataReader myread;
//Checking ADS User Record No.
ads.IsADSMaintenanceAdmin(sender);

ADT_Doc_Recno=Request.QueryString["ADT_Doc_Recno"].ToString();
lab_message.Text=ADT_Doc_Recno;

string sqlstr=ads.GetConnectionString4ADS();
string sqlshowdoc="select * from ADS_Document_table where ADT_Doc_Recno="+ADT_Doc_Recno;
try
{
SqlConnection sqlconn=new SqlConnection(sqlstr);
SqlCommand cmd=new SqlCommand(sqlshowdoc,sqlconn);
sqlconn.Open();
myread=cmd.ExecuteReader();
if (myread.Read())
{
Response.Clear();
string doc_type=myread["Doc_Type"].ToString();
Response.ContentType=(string)myread["Doc_Type"];
//Response.BinaryWrite( (Byte[]) myread["Doc_File"]);
Response.OutputStream.Write((byte[]) myread["Doc_File"],0,Int32.Parse(myread["Doc_Size"].ToString()));
}
sqlconn.Close();
Response.End();
}
catch(Exception ee)
{
lab_message.Text=ee.ToString();
} // Put user code to initialize the page here
} #region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{    
this.Load += new System.EventHandler(this.Page_Load); }
#endregion
}
}得出的结果是页面只显示:System.Byte[]
又没有报错,我应该怎样写?