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
Are you encoding the file in base 64 before returning it in _get_diag?
I mean, something like:
image_buffer = cStringIO. StringIO( ) image_buffer. getvalue( ))
# .......write something into the image_buffer file-like object........
data = encodestring(
return data