• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Streaming File Downloads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Streaming File Downloads
      • From: Greg Hulands <email@hidden>
  • Prev by Date: classpath and jars
  • Next by Date: Re: Streaming File Downloads
  • Previous by thread: classpath and jars
  • Next by thread: Re: Streaming File Downloads
  • Index(es):
    • Date
    • Thread