Try this:
#default.py
def img():
row = db(<query based on request.args/vars>).select(db.recipes.IMAGES).
first()
if row:
return response.stream(row.IMAGE)
Usage: =URL( 'default', 'img', args=..., vars=...)
On Saturday, August 10, 2019 at 12:43:49 AM UTC+3, Константин Комков wrote:
>
> 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 Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/bc5bb1f6-c287-420e-89e9-64b2c4abb24e%40googlegroups.com.