Hi Carsten,
> "Carsten A. Arnholm" <[email protected]> hat am 28. Dezember 2013 um 21:37 > geschrieben: [...] > A few days ago I discovered tntnet and found it really, really > interesting! It seems like just what I would like to use.... that's nice to hear that you like tntnet [...] > As a next step, I hope at first to make something not too complicated > that takes user input (e.g. dates) and produces plots of measured data > between the dates, presumably the plots as JPG or GIF files. I have > similar code already written for desktop programs, and would like to try > similar code in a tntnet application. Do any of the demos show how to > display images computed at runtime? The quick start guide showed a > static image that had to be compiled, but in this case a different > method must be used I think. You find this code example.... <%pre> #include #include <tnt/mimedb.h> </%pre> <%cpp> std::ifstream in(("./" + request.getPathInfo()).c_str()); if (!in) return DECLINED; tnt::MimeDb mimeDb("/etc/mime.types"); reply.setContentType(mimeDb.getMimetype(request.getPathInfo())); reply.out() << in.rdbuf(); // send the content of the ifstream to the page </%cpp> ...on this site: http://www.tntnet.org/howto/static-howto.html greetings, Olaf (munich, germany) -------------------|-------------------|-------------------|-------------------| ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
