Search code examples
asp.netimagememorystream

How to bind a MemoryStream to asp:image control?


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


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