Response.Write
. के बजाय बाइट सरणी को एक सत्र में संग्रहीत करें
Session["image"]=(byte[])dreader["image"];
इसे अपनी image
. के स्रोत के रूप में उपयोग करें
byte[] imgSrc=(byte[])Session["image"]
string imgSrcStr= Convert.ToBase64String(imgSrc);
string imageSrc = string.Format("data:image/gif;base64,{0}", imgSrcStr);
In the view:
<img src='"<%=imageSrc%>"' />
या बस यह सब Response
. के बजाय अपने फंक्शन में ही करें