[Zope-DB] MySQL blob-field question

Robert Campbell robert at deterset.com
Tue Apr 8 13:47:15 EDT 2008

    I'm new to the group and of course have a question.
    I'm trying our Zope 2.10.5-final. and have a new problem displaying 
images from a MySQL database..
    Here is the code that works on my old 2.9.4 server.

ZSQL Method: getImage
select image, cType as filetype
from images
where <dtml-sqltest id op="eq" type="int">

    on Zope 2.9.4 I get the raw data [.PNG.......]
    on Zope 2.10.5 I get array('c', 

How can I get the raw data, convert the array or decode to display my 
image ?

Thanks for any help,

More information about the Zope-DB mailing list