This is my model.
I upload the image to the logotipo_marca_blob field...

I can already use 

from PIL import Image inside app engine SDK without problems...

db.define_table('marcas', 
    Field('nome_marca',unique=True),
    Field('site_marca'),
    Field('nome_marca_url', readable=False),
    Field('logotipo_marca_url', 'upload', 
uploadfield='logotipo_marca_blob'),
    Field('logotipo_marca_blob', 'blob'),    
)


How can I get the imagem from request.vars and change its size BEFORE 
insert in the datastore?
Or... after insert... how can I get the image TO and OUT from PIL Image 
object ?


I'm in doubt because PIL opens the image from a file... and Google App 
Engine does not allow access to file system.

Web2py is really great... and I found myself really productive with it... 
but for this question... I aready take many hours and did not find any 
answers...

Anyone can help-me with a piece of code and some ideias?

Thanks!







Reply via email to