How to bind a MemoryStream to asp:image control?

asp.net, image, memorystream

Solution

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]`.

Problem

Is there a way to bind a MemoryStream to asp:image control?

Original source