You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ross Allard <Ro...@sas.com> on 2003/04/25 15:42:49 UTC

FileUpload question

This is probably a basic question, but once I've gotten a file to the mid-tier (and beyond), how do I deliver it back to a user when requested?  I have a struts web application that needs to handle attachments.  I can use fileupload to get the file from the client into a repository.  What's the process of delivering it back to the user for viewing, in such a way that the browser has enough information to know what to do? Is it possible to simply stream the file contents to the response?  

Any help will be appreciated.

Ross Allard
Sas Institute