Hi all,
I'm trying to display an image stored in the database table.
Here's the table:
db.define_table('menu',
Field('image','upload'),
format = '%(title)s')
I used the below html code to render the image:
<img src="{{=URL(f='download', args=i.image)}}" width="110" height="110"
alt="{{=i.description}}"/>
Though I'm able to see that the image files are stored in the table, for
each image, the alt text is getting displayed.
Could somebody help me?
--
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].
For more options, visit https://groups.google.com/d/optout.