I stored image in binary format in database and retrived it using stored procedure,
i insert breakpoint and found that image in byte is receiveing correctley but it is not displaying please check the following code and help me to fix it .
_____________________________________________________
protected void Button4_Click(object sender, EventArgs e)
{
connection obj1 = new connection();
DataTable dt= obj1.display();
if (dt != null)
{
byte[] bytes = (Byte[])dt.Rows[0]["image1"];
byte[] b = bytes;
Response.Buffer = true;
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "image/jpg";
Response.BinaryWrite(bytes);
Response.Flush();
Response.End();
}
}