unfortunately, this is the documention on this sort of thing:
does anyone have a clue on how I can achieve this?
serveFile in cherrypy is the closest to anything that will work, but
i'll have to butcher it to work on raw data.
anyone have another idea?
@expose()
def captcha(self,**data):
captchaInstance = TG_Captcha(captcha_seed='email_address')
cherrypy.response.headerMap['Content-Type'] = 'image/jpeg'
return captchaInstance.generate_image().render_img()
Very cool!