See: http://blog.getintheloop.eu/2009/3/19/understanding-lift-s-streamingresponse
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 to download data 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, file download...", 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 at > http://groups.google.com/group/liftweb?hl=en. > > -- 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.
