if (dr.Read())
{
object oa = dr["FileInfo"];
Byte[] fileinfo = (byte[])oa;
Response.AddHeader("Connection", "Keep-Alive");
this.Response.ContentType = dr["ContentType"].ToString();
Response.AddHeader("Content-Disposition", "attachment;filename=" +dr["FileName"].ToString());
Response.AddHeader("Content-Length", fileinfo.Length.ToString());
this.Response.BinaryWrite(fileinfo);
dr.Close();
this.Response.End();
}