Good morning, thanks for your answers! Still I have to ask for more detailed instructions: How can I donwload the file in Flex client? Both Filereferencer.download and URLLoader.load require that URLRequest.url is set to an URL, how can I generate a proper URLRequest object in client or pass it from the server to the client? The problem is not about the contents of the file to be downloaded, but how to make the file available. Please note that our client is using the server over FluorineFX.
BR Ilkka --- In [email protected], "zoltan" <[EMAIL PROTECTED]> wrote: > > Hi, > > with any type of backend you can generate files on the fly, so they will not > be saved in the server's filesystem and your client will still access it > with Url/FileReference > > For example check out the "Simply Compatible: Tab Delimited Format" section > here > http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/ asp200309so > _l.asp > > Zoli > > _____ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of ilkka.kudjoi > Sent: Wednesday, April 30, 2008 11:09 AM > To: [email protected] > Subject: [flexcoders] Creating and downloading a file in client or > alternatives > > > > Hi, > > we do have a flex application running on a server using .NET C# over > FluorineFX. We need to export tables in Excel, so I suppose should > create text file containing a html table and set it's mime type to > Excel so that the file would open in Excel as default. > > Is there any means of creating the file in the client and letting the > user download the file as it was coming from the remote server? If it > would be possible to create the file in client, it would be > preferable due to performance issues. Note, that I do not wan't to > access user's file system directly, only provide the user a dialog > where he/she can choose, where to save the file. > > If this is not possible, what practice would you suggest to handle > the case in server? So far I've googled that it should be possible to > create a file on the server, send the URL to the client and then use > FileReferencer class to download the file, but I found this solution > unpreferrable, because the file needs to be accessed only once and > only by the current user - no-one else, so I found saving the file in > server's filesystem not a good choice. > > I really appreciate your advice, > BR Ilkka >

