Hi Wim > From: Wim Dumon [mailto:[EMAIL PROTECTED] > If the data you want to stream through a WFileResource is in > fact a real file on a file system of your embedded system, > you can also consider to simply link to it with an anchor > (either <a> or a WAnchor). Wt will stream the file > asynchronously without consuming large buffers, and it won't > occupy a thread for the duration of the file download. > If you generate the data on the fly, this is of course not possible.
I actually have two scenarios. One is streaming a real file for which your suggestion would work. The second is where I want to create and stream a tar archive of a directory structure. I want to do this by creating a FIFO in the file system (it's linux), start tar: "tar c [dir] > theFIFO &" and then stream from the FIFO like it was a regular file. Unfortunately wt refuses to stream from the FIFO and gives a 404 instead :( cat'ing from the FIFO works without problems. -- Med venlig hilsen / Best regards Michael Sørensen Loft, Mjølner Informatics A/S ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
