From: Matt F. <ma...@da...> - 2002-05-14 21:59:25
|
| how should I go about serving, for example, a jpeg dynamically | from webware? This is covered lightly in the wiki: http://webware.colorstudy.net/twiki/bin/view/Webware/FileStreamingAndContent Disposition But I'd go a step further and overwrite the whole respodToGet method, and inherit from HTTPServlet rather than Page. If you need methods from your SitePage, obviously, don't do that. I've done this with flash files, CSV files, vCards, and even jpeg. The key bit is changing the content type mimetype, so the browser interprets the data stream correctly. Good luck. |