Is there a way to bind a MemoryStream to asp:image control?
A handler can accept a url parameter like any other request. So instead of linking your <asp:image/> to image.ashx you'd set it to image.ashx?ImageID=[Your image ID here].
<asp:image/>
image.ashx
image.ashx?ImageID=[Your image ID here]