[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-30 Thread Thomas Rynne
On Mar 26, 12:14 am, David Pollak wrote: > Here's some code to serve an image out of the database. > ... > Does this help? Yes it does. I've got it working now. Thanks, Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-26 Thread Viktor Klang
For Graphs I'd recommend Flot :) On Thu, Mar 26, 2009 at 12:14 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > Here's some code to serve an image out of the database. Here's the Mapper > definition: > > class Image extends LongKeyedMapper[Image] with IdPK { > def getSingleton = Im

[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-25 Thread David Pollak
Here's some code to serve an image out of the database. Here's the Mapper definition: class Image extends LongKeyedMapper[Image] with IdPK { def getSingleton = Image object image extends MappedBinary(this) object lookup extends MappedUniqueId(this, 32) { override def dbIndexed_? = true

[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-25 Thread Timothy Perrett
If you'd like graphing, depending on your use case perhaps check out the flot graph widget in lift-widgets Sent from my iPhone On 25 Mar 2009, at 21:38, Thomas Rynne wrote: > > Hi, > I want to dynamically generate images (actually a graph). I could > write a seperate servlet for this but I'd

[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-25 Thread Derek Chen-Becker
Check out our JFreeChart graphing class in PocketChange: http://github.com/tjweir/pocketchangeapp/blob/903ae91ab2787aebd9a94a5439a7e39a9386bcdb/PocketChange/src/main/scala/com/pocketchangeapp/util/Charting.scala And how it hooks into the request cycle in Boot: http://github.com/tjweir/pocketchan

[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-25 Thread David Pollak
Oddly enough, I'm working on code like this right now... I'll post what I can. On Wed, Mar 25, 2009 at 2:38 PM, Thomas Rynne wrote: > > Hi, > I want to dynamically generate images (actually a graph). I could > write a seperate servlet for this but I'd like easy access to the > Mapper classes and