I am bored and looking into creating my own charting control mainly for the experience in GDI and databinding. I have the rudimentary basics complete that allow me to create an image based on some input parameters. I will eventually get to the databinding portion, but the question I have now is, how to get the rendered image to the client. I currently see two options. 1) Save the image to the Response.OutputStream and set the appropriate response headers so that the binary data renders as an image on the client side, or 2) save the rendered image on the server with a unique identifier and then link to that saved image. I am currently using option #1 and this works, but this means that you always have to point to your handler/custom page/etc. indirectly instead of dropping a control on the page. How does the Microsoft Chart Control that started shipping with the 3.5 framework do it? Is there another option that I have overlooked for getting the rendered image to the client?
View Complete Post