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
flush(), truncate(0), but
> it didn't work. (My mistake probably ;-)
> But the images show in the PDF so that's fine for now.
>
> On 9/5/07, dimitri pater <[EMAIL PROTECTED]> wrote:
> > -- Forwarded message --
> > From: dimitri pater <[EM
--
> 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 what I
> > expecte
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 ...]
th