I am developing a Web application, where in I get some images and documents from an external source. These images and documents are stored in memory. Since there can be huge traffic on this Web site, it is not adviced to save it onto the disk, hence I want to show the in-memory images and documents on a asp.net web page. Can anyone guide me, how can we achieve this ?
One way I tried was using the custom web controls, I use to render the images as Response.BinaryWrite and same for documents in the custom control. But the content-type may differ for each image and the document. The solution worked, but is not a robust one, since some time it displayed and sometimes it doesnt