I think the problem is with the open(), i'm not sure that works at all on 
GAE, and/or the path to the file is not what you expect.  I'm not sure how 
to pragmatically insert an image into the datastore.

On Sunday, February 3, 2013 1:30:20 AM UTC-8, Sebastian Cambeo wrote:
>
> OK, I created a minimal scenario for reproducing the error:
>
> append these lines to the welcome db.py, create test.jpg in root folder 
> and deploy directly to GAE:
>
> db.define_table('table1',
> Field('image', 'upload'),
> )
> db.table1.insert(image =  open('test.jpg', 'rb'))
>
>
> Then call welcome/appadmin and you will see that clicking on the "file" 
> link downloads an empty image because the blob data is empty.
> table1.idtable1.imagetable1.image_blob37001*file*None
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to