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
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
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
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
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
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