Re: [web2py] Re: How can I insert image in HTML from database?

2019-08-09 Thread Константин Комков
Ok, I will register issue on github. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Gr

[web2py] Re: How can I insert image in HTML from database?

2019-08-09 Thread Dave S
On Friday, August 9, 2019 at 1:47:52 PM UTC-7, Константин Комков wrote: > > *Val K*, yes, I have database which contain images. I tried use blob ↓. > I don't know why but if I do like that I have error: > table.py > db.define_table( > 'recipes', > Field('NAME',length=512), > Field('IM

[web2py] Re: How can I insert image in HTML from database?

2019-08-09 Thread Константин Комков
I don't know why but if I do like that I have error: table.py db.define_table( 'recipes', Field('NAME',length=512), Field('IMAGE','*blob*'), migrate=False ) and query in controller: db().select(db.recipes.IMAGE).first() Версия web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22

[web2py] Re: Linking GRID records with other records in same GRID

2019-08-09 Thread Sarbjit
Any suggestions ? How can I get to the details page for any grid record without clicking on Details button (knowing the grid-id is not sufficient as the signature value is unique for every record) On Wednesday, March 13, 2019 at 10:02:06 AM UTC-4, Sarbjit wrote: > > I am using SQLFORM.GRID to di

Re: [web2py] Como mostrar a imagem no HTML com web2py

2019-08-09 Thread Marco Mansilla
Actually the download method is written in the default controller, unless you have written your own function in template. {{=IMG(_src=URL('default','download', auth_user.foto))}} Anyway, could you provide the auth_user table definition?, did you add extra fields?, Since auth_user.foto.file s