SqlConnection conn;SqlCommand cmd1;protected void Page_Load(object sender, EventArgs e){conn = new SqlConnection(..............);conn.Open();cmd1 = new SqlCommand("select * from user_information where name='alex'", conn);dg1.DataSource = cmd1.ExecuteReader(CommandBehavior.CloseConnection);dg1.DataBind();}public string FormatURL(object strArgument){return ("format.aspx?guid=" + strArgument);}format.aspx:// No Need To Write Any Thing..cs:page_load(){cmd = new SqlCommand("Select logo from user_information where name='alex'", conn);reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);while (reader.Read()){Response.ContentType = "image/gif";Response.BinaryWrite((byte[])reader["logo"]);}reader.Close();}