RE: Streaming File Downloads
RE: Streaming File Downloads
- Subject: RE: Streaming File Downloads
- From: Ismael Perdido <email@hidden>
- Date: Mon, 11 Oct 2004 01:44:00 +0200 (CEST)
Hi All,
I would like to serve the client a file to download
using a DirectAction.
I have a page listing database rows (including a
OpenBase 'object') and want to serve the file
associated with the item a user chooses. Inside a
WORepetition I have a button with action getFile, here
was my idea:
public WOComponent getFile()
{
WOResponse.setContentStream((java.io.InputStream)
FileInputStream(document.file), 4096, 4096);
return null;
}
Unfortunatley neither the setContentStream nor the
access of the '.file' column of 'document' were usable
in this context. Help anyone???
Thanks,
Ismael Jones
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden