Just provide a URL that calls a JSP?Servlet that streams the file back.
That's how we've done it.


Carson 


____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of j_sports
Sent: Friday, January 06, 2006 12:48 PM
To: [email protected]
Subject: [flexcoders] FileReference Download

I am trying to utilize the Flash 8 FileIO.swf available for use within
Flex 1.5.  I can successfully download a file from a remote url where
a file is being stored on disk, but I wish to load a file being stored
as a blob in the database.  It seems silly to extract the file from
the database, write it temperarily to disk and then initiate the flash
download.  Is there a way to make the file available for download
without first writing it to the servers file system?  I would be using
java for any backend work required and am currently using a servlet
with the apache commons fileUpload 1.1 jar to do file uploads.

The flash 8 documentation indicates that the download signature is as
follows:  

public download(url:String, [defaultFileName:String]) : Boolean

Which leads me to believe there is no alternative.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to