On 5 sep, 16:34, Jonathan Lundell <[email protected]> wrote:
> On Sep 5, 2009, at 8:53 AM, Jose wrote:
>
> >> Try adding 'import errno' to streamer.py.
>
> > with import errno does not show error, but still not working.
>
> What does "not working" mean, exactly?
>

I use:

def imgcaptcha():
    if session.image is None:
        image = StringIO()
        session.text = captcha.captcha(os.path.join(request.folder,
'private'), image, mode=6, length=5, angle=15, arcs=1)
        session.image = image.getvalue()

    response.headers['Content-Type'] = 'image/x-png'
    response.headers['Content-Disposition'] = 'inline;
filename=captcha.png'

    return response.stream(StringIO(session.image), chunk_size=4096)

with the 1196 version shows the image, with the 1199 (1197 and 1198)
no.

Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to