You do not return the image that way. You need two actions, one only 
returns plot() (the binary data) and another would be a regular action 
which display a link to the other action.

def myimage(): return plot()

def Testing(): return dict() # in view <img src="{{=URL('myimage')}}"/> ...

On Tuesday, 29 January 2013 10:53:03 UTC-6, BlueShadow wrote:
>
> I did some experimenting the problem is putting the image into the return 
> dict() or into any variable.
> I got no clue how to fix it or why that is the problem.
>
> On Tuesday, January 29, 2013 5:07:16 PM UTC+1, BlueShadow wrote:
>>
>> I tried that but it doesn't show an image it puts the img tag in the html 
>> code and fills the src="binary" with the pinary stuff but no image is 
>> displayed
>>
>> On Tuesday, January 29, 2013 4:53:33 PM UTC+1, rochacbruno wrote:
>>>
>>> I guess you can try
>>>  
>>>
>>>> {{=IMG(_src=plotimg)}}
>>>
>>>
>>> or 
>>>
>>> <img src="{{=plotimg}}" /> 
>>>
>>>
>>>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to