[reportlab-users] init Image from cStringIO
Fri, 30 Apr 2004 13:45:33 +0200
could not find an example on the website or in the faq, not even in the
list archive (although I believe it has already been asked).
I use gdchart to create a chart in memory. Now I want to include it in
my PDF. Here is my code
graphfile = cStringIO.StringIO()
(int(document.pagesize/2 - 4.5*cm),250), graphfile) +
Only I get an error message
IOError: [Errno 2] No such file or directory: '<StringO object at
Any ideas? How can I include that image in my PDF?