>
> it's a matter of "precedence"..... there's a clean section on the book on
> how to do it
>
> http://web2py.com/books/default/chapter/29/06?search=More+on+uploads
>
>
it's work well now, thank you so much for your pointer, niphlod.
if db(db.test2).isempty():
stream = open('./applications/%s/static/images/test1.png' %
request.application, 'rb')
db.test2.insert(image = db.test2.image.store(stream,
'./applications/%s/static/images/test1.png' % request.application),
image_data = stream.read())
> PS: you're importing populate from gluon.contrib but not using it: are you
> sure you need it ?
>
>
yeah you are right, i'm just copy paste from the other code and not been
used in this case.
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.