2011/5/31 Dmitriy Igrishin <[email protected]>: > Hey Gabor, > > 2011/5/31 Gabor E. Tusnady <[email protected]> >> >> Dear Koen, Wim et all, >> >> I would like to download 'on-the-fly' generated file with wt. How can I >> do that? I guess WResource may help me, but I couldn't figure out the >> right way. More specifically, my application generate some data, and I >> would like to send back that data to the user's browser, that the >> browser asks user to save it. > > If your application generate a data which can be represented > as a stream, e.g. a file or database large object, the simplest way to send > it to the browser is to use WStreamResource class which is in git now. >
The documentation of WResource explains it with an example. Another example: the source code of WStreamResource.C (or WFileResource in older Wt). Wim. ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
