dimitri pater wrote:
Hi,
the following code works when inserting images in reportlab tables:
(result4 is a query result)
a=0
for i in result4:
cfoto = StringIO()
cfoto.write(result4[a][9].tostring())
dfoto = cfoto.getvalue()
fileFoto =
dimitri pater wrote:
I am trying to insert an image, which is stored as a blob in MySQL,
into a table using Reportlab.
[... snip stuff involving StringIO and getvalue / tostring etc. ...]
This is also the string I see in the table, in stead of the actual image.
[.. snip more stuff ...]
, 2007 9:13 PM
Subject: Re: StringIO MySQL data blob Image problem
To: Tim Golden [EMAIL PROTECTED]
Well, I'm mystified. Not by your results: that exactly what I
expected to get, but because you're doing everything *except*
manipulating an image and putting it into a PDF via ReportLab
, dimitri pater [EMAIL PROTECTED] wrote:
-- Forwarded message --
From: dimitri pater [EMAIL PROTECTED]
Date: Sep 5, 2007 9:13 PM
Subject: Re: StringIO MySQL data blob Image problem
To: Tim Golden [EMAIL PROTECTED]
Well, I'm mystified. Not by your results: that exactly