Hi  you can try this in the view:

 <img src="{{=URL
<http://127.0.0.1:8000/examples/global/vars/URL>('download',args=db.table[ID].image)}}"
/>


Where table is the table qjere you have the client data, and ID is cliente
you whant the photo.

2011/10/17 Saurabh S <[email protected]>

> Hi ,  i am developing an online booking system using web2py ...i have
> come across a requiremnt where i need to store the clients photo into
> the database(< 2MB)...how should i proceed with this........ .... .i
> have achieved the functionality to store a image into the database
> when i create a perticuler client...but the problem is the " same
> image should be visible" when the we edit the clients page..but this
> is not happening....when i checked in appadmin that image is getting
> stored into the DB ....but i am unable to retrieve it back(for
> viewing) on the edit client page
> for storing i have used a DB field i.e. , Field('image','upload')
> .
> also i am using
>  <td>{{=form.custom.label.image}}:</td>
>  <td>{{=form.custom.widget.image}}</td>
>
>
>
> how i can retrieve image back so that it becomes visible in smaller
> size on the edit client page
> Please suggest ...
>



-- 
José F. Luna P.

Reply via email to