Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: DB

MySQL blob-field question

 

 

Zope db RSS feed   Index | Next | Previous | View Threaded


robert at deterset

Apr 8, 2008, 10:47 AM

Post #1 of 1 (124 views)
Permalink
MySQL blob-field question

Hello,
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',
'\xff\xd8\xff\xe1,\xffExif\x00\x00II*\x00............

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

Thanks for any help,
Rob

_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db

Zope db RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.