1
1
Hi there,
A while back I wrote some code using the .Net drawing libraries... this code
takes a datatable and generates a pie or bar chart on the fly. The resulting
image is returned using response.outputstream.
While this is a budget solution it suited the purpose at the time. I now
want to reuse this code but because using response.outputstream only allows
the resulting image file to be displayed (by itself with no page around it)
I need to change the way I return the image.
Can anybody suggest how I can return an image generated on the fly to my
page without having to save it to disk first?
I know I can return an image object to the page but how do I then send it to
the browser...? Without saving it to disk that is...
Cheers
A while back I wrote some code using the .Net drawing libraries... this code
takes a datatable and generates a pie or bar chart on the fly. The resulting
image is returned using response.outputstream.
While this is a budget solution it suited the purpose at the time. I now
want to reuse this code but because using response.outputstream only allows
the resulting image file to be displayed (by itself with no page around it)
I need to change the way I return the image.
Can anybody suggest how I can return an image generated on the fly to my
page without having to save it to disk first?
I know I can return an image object to the page but how do I then send it to
the browser...? Without saving it to disk that is...
Cheers