Comment 1 for bug 504451

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Are you encoding the file in base 64 before returning it in _get_diag?

I mean, something like:

image_buffer = cStringIO.StringIO()
# .......write something into the image_buffer file-like object........
data = encodestring(image_buffer.getvalue())
return data