[Lift] Re: File Download

2010-03-09 Thread DavidV
Any thoughts on this? Still trying to get it to work. Thanks On Mar 5, 2:56 pm, DavidV david.v.villa...@gmail.com wrote: I have recreated a number of StreamingResponse methods from both the Loop link above and the Lift book and I still can't seem to get the desired effect.  I have been able

Re: [Lift] Re: File Download

2010-03-09 Thread Timothy Perrett
Is your dispatch defined it boot? It doesnt sound like it is... Cheers, tim On 9 Mar 2010, at 21:45, DavidV wrote: Any thoughts on this? Still trying to get it to work. Thanks On Mar 5, 2:56 pm, DavidV david.v.villa...@gmail.com wrote: I have recreated a number of StreamingResponse

Re: [Lift] Re: File Download

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 1:45 PM, DavidV david.v.villa...@gmail.com wrote: Any thoughts on this? Still trying to get it to work. See the enclosed example code. Specifically, there's a dpp.gif file in src/main/resources and in Boot.scala: LiftRules.statelessDispatchTable.append {

[Lift] Re: File Download

2010-03-05 Thread DavidV
I have recreated a number of StreamingResponse methods from both the Loop link above and the Lift book and I still can't seem to get the desired effect. I have been able to get a PlainTextResponse to work by using LiftRules.dispatch in the Boot, like so: LiftRules.dispatch.prepend {

[Lift] Re: File Download

2010-03-04 Thread DavidV
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

[Lift] Re: File Download

2010-03-04 Thread Marius
If you want to download through Lift than yes you can use StreamingResponse, or simply any other LiftResponse (depending on your mime-type) and use LiftRules.dispatch mechanism. But you could also let the container to serve the file. By default Lift is trying to serve .html, .xhtml, .htm, .xml

[Lift] Re: File Download

2010-02-14 Thread Gang
Thanks Tim, that's exactly what I'm looking for! On Feb 14, 11:27 am, Timothy Perrett timo...@getintheloop.eu 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.