I am also looking to download a file from the server that is hosting my Lift web app. There is a very useful fileUpload method in the SHtml class and I was wondering if there may be something similar for a file download? I was unable to find anything, and searching for "Lift" or "Scala Lift download" on Google returns nothing but pages to download the libraries, plugins or source code. I suppose I could use the StreamingResponse, but I am already saving the file I need to the server and it would be nice to be able to download it to any client computer with the typical "Browse" button, similar to the upload, Thanks, David
On Feb 14, 3:58 pm, Gang <[email protected]> wrote: > Thanks Tim, that's exactly what I'm looking for! > > On Feb 14, 11:27 am, Timothy Perrett <[email protected]> wrote: > > > See: > > >http://blog.getintheloop.eu/2009/3/19/understanding-lift-s-streamingr... > > > Construct the CSV in memory and just then stuff it into a streaming > > response as a byte array. > > > Cheers, Tim > > > On 14 Feb 2010, at 16:18, Gang wrote: > > > > Hi, > > > > I have a question and it may not be a pure Lift one. But since I'm > > > working on a Lift app and this group is the most responsive one I have > > > seen, might just try it here. > > > > I need todownloaddata from database in CSV format. What is the best > > > approach within Lift framework? Do I have to write the data on the > > > server somewhere and then provide user with a link? I have tried to > > > google "scala, lift,filedownload...", but could not come up with > > > what I'm looking for. Maybe I didn't use the right key words in > > > search? Thanks in advance! > > > > Brs > > > Gang > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Lift" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/liftweb?hl=en.-Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
