Here is how my code is:
page.aspx:
<asp:Image ID="Image1" runat="server" />
Code behind:
byte[] IMG = class.readImg(id);
Image1.ImageUrl = "~/page.aspx?ID=" + id.ToString();
Context.Response.ContentType = "image/jpg";
Context.Response.BinaryWrite(IMG);
Whith this code, the only thing that shows in page.aspx is the image read.