Thanks, Anthony. Since there is no URL associated with an image stored in a 
buffer, what would be the proper way to render it?

On Monday, July 8, 2013 12:49:19 PM UTC-5, Anthony wrote:
>
> The IMG() helper simply creates an HTML <img> element to be displayed in 
> the browser. The "src" attribute of an image element should be a URL where 
> the browser can request the image. You cannot pass an actual image file 
> object to the helper.
>
> Anthony
>
> On Monday, July 8, 2013 1:38:56 PM UTC-4, Lamps902 wrote:
>>
>> I'm attempting to do the following:
>>
>> img_buffer = io.BytesIO()
>> pylab.savefig(img_buffer, format = 'png')
>> img_buffer.seek(0)
>> IMG(_src=img_buffer, _alt = 'image buffer not displaying')
>>
>> This shows the _alt message. Any ideas on how to get it to show the 
>> image? Thanks.
>>
>>
>>

-- 

--- 
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/groups/opt_out.


Reply via email to