Hello Kevin, if you plan to serve static files, may Directory be what you need, see part06 of the tutorial http://www.restlet.org/documentation/1.0/tutorial#part06.
Otherwise, you can use the "content-disposition" header (which is not a standard header, see chapters 15.5 and 19.5 of the HTTP rfc http://www.ietf.org/rfc/rfc2616.txt). I send you a sample application (2 classes). best regards, Thierry Boileau On Nov 21, 2007 8:46 PM, Kevin Conaway <[EMAIL PROTECTED]> wrote: > What is the proper way to use FileRepresentation inside > Resource.getRepresentation(Variant)? I'd like to send the user a file if > they browse to a certain URI. > > However, when I browse to that URI, it sends me the file, but the original > it doesn't send a filename with it. > > Also, why must I set an time to live on the representation? If I'm sending > the file to be downloaded, it should live as long as necessary. > > Thanks, > > Kevin >
TestFileRepresentation.java
Description: Binary data
MyResource.java
Description: Binary data

