byte[] ImageInfo = //get
MemoryStream s = new MemoryStream();
try
{
s = new MemoryStream(ImageInfo );
}
catch (Exception ex)
{
}
if (s.Length != 0)
{
Response.BinaryWrite(ImageInfo) ;
}
Call it from another .aspx like so :
Image2.ImageUrl = "RenderImage.aspx";
Couldn't be easier.....well you say that now....just keep in mind that if you are using an UpdatePanel with ajax, that the call to BinaryWrite will not be liked, as it causes a MemoryStream error.
No comments:
Post a Comment