Hello there,

some of my resources provide a FileRepresentation with a file to
download, like this:

File file = createTempFile();
Representation rep = new FileRepresentation(file, mt);
Disposition disposition = new Disposition(Disposition.TYPE_ATTACHMENT);
disposition.setFilename(file.getName());
disposition.setSize(file.length());
rep.setDisposition(disposition);

I was wondering if there's a way to say to Restlet to automatically
delete the file once it has been streamed back to the client (that is,
once the client finishes downloading it). Using Restlet 2.0M7.

Thanks in advance for your answers

-- 
Fabián Mandelbaum
IS Engineer

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2445868

Reply via email to