J
jenp
Hello
I've got a rather tricky problem here - i'm looking to insert a graph
into a web page - which is represented as a jpeg image.
Due to the restrictions of the framework i'm developing against, the
data for the graph is only stored in the HTTPContext's Items
collection, so the page that displays the graph is the only one with
the data.
This means I can't simply reference another aspx page in the src tag of
the image
<img src="graphImage.aspx"/> <!-- No good -->
I've also tried to call a method to do a Reponse.BinaryWrite of the
image's binary data - but this doesn't work either, as the Response
object becomes confused with multiple content types.
<img src='<%GetGraphData();%>'/> <!-- Spits out random ASCII chars -->
Is there any way that I can spoof a complete HTTPResponse from within a
method in the code behind page, so the browser thinks it is pointing to
a separate page in the src tag? Something along the lines of creating a
new Response object I assume, although any pointers would be very
useful...
Many thanks
Phil
I've got a rather tricky problem here - i'm looking to insert a graph
into a web page - which is represented as a jpeg image.
Due to the restrictions of the framework i'm developing against, the
data for the graph is only stored in the HTTPContext's Items
collection, so the page that displays the graph is the only one with
the data.
This means I can't simply reference another aspx page in the src tag of
the image
<img src="graphImage.aspx"/> <!-- No good -->
I've also tried to call a method to do a Reponse.BinaryWrite of the
image's binary data - but this doesn't work either, as the Response
object becomes confused with multiple content types.
<img src='<%GetGraphData();%>'/> <!-- Spits out random ASCII chars -->
Is there any way that I can spoof a complete HTTPResponse from within a
method in the code behind page, so the browser thinks it is pointing to
a separate page in the src tag? Something along the lines of creating a
new Response object I assume, although any pointers would be very
useful...
Many thanks
Phil