[web2py] Re: How do I post an image to web2py from HTML5 Canvas

2014-04-07 Thread pubu
hi, i would do the follow: 1) in model use compute to create image form base64 string: db.define_table('user_images', Field('my_image', 'upload', label=T('My Image'), compute=lambda r: create_image_from_base64_str(r.my_image_b64)), Field('my_image_b64', 'text') ) def create_image_from_b

[web2py] Re: How do I post an image to web2py from HTML5 Canvas

2014-04-06 Thread Ari Lion BR Sp
Any answer? I have the very same need. Thanks Ari Em segunda-feira, 2 de dezembro de 2013 14h02min30s UTC-2, Michael Hall escreveu: > > If I have the following model: > > db.define_table('user_images', > Field('my_image', 'upload', > label=T('My Image')), > ) > > and In my rendere