PS:This below code is in C#.
Please do the following steps to resolve it.
Step1: Take 1 new Page Test.aspx
Code behind Test1.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
System.Drawing.Image BCImage = new System.Drawing.Bitmap(@"C:\test.jpg");
MemoryStream ms = new MemoryStream();
BCImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
Response.ContentType = "image/jpeg";
Response.Clear();
Response.BinaryWrite(ms.ToArray());
}
Step2: On your handler page
Image img = new Image();
img.ImageUrl = "~/Test1.aspx";
panel1.Controls.Add(img);
Response.Write("<BR> HI <BR>");
Then it will show you both the things(Image and text/html content)
If this helped you then please Vote and accept as Answer :rose: