In ASP.NET, you can not mix content types in the same response stream. Textual data and binary data, such as images, are sent to the client via separate requests to the web server. Therefore, there will be little that you can do with the image data in the ASPX. One option would be to save the image data in the ASP.NET cache and render the page with an HTML img element whose src attribute is a parameterized URL for an HTTP handler that will retrieve the image out of the cache and write it to the response stream. You could use a similar approach with your current system where the image is returned by a separate web service. For more information on using dynamic images in ASP.NET pages and custom HTTP handlers, see the discussion, links, and example code in
this previous thread.
- Elton