Check out FileResourceStream. Create one of those from your file, then you can create a ResourceLink directly to it. Or, if you don't want to create the resource for every user, you can wrap it in a resource reference and link to that instead.
On 9/13/05, Scott Sauyet <[EMAIL PROTECTED]> wrote: > I wrote: > > By the way, I don't have any control over MIME-types here. The user > > might upload a text document, a PDF, a MS Word document, or may other > > things. Is that going to be a problem? > > I now realize that this is an exageration. Since I'm using > wicket.markup.html.form.upload.FileUpload, I can use getContentType(). > I'm not storing that for now, but certainly can if need be. Still how > do I return an arbitrary file (not in the classpath, for instance) to > the browser? > > -- Scott > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
