[Zope] Display images stored in Relational DB

Thomas G. Apostolou thomas.info at hol.gr
Wed Oct 19 09:34:27 EDT 2005


Αρχικό μήνυμα από  Chris Withers <chris at simplistix.co.uk>:

> Thomas G. Apostolou wrote:
> > I have an External Method "GetPrList" witch is connected to a
> python
> > module that reads like this
> 
> You really want to be uxing mxODBC and it's Zope DA...
> 
> > X.SODATA is jpg stored in SQL 2K in a field degined as	[SODATA]
> [image]
> > NULL
> 
> Bleugh... binary data in RBDs suck :-(
> 
> > The problem is that i get a "pythonw.exe" Debug-Send Error
> Report-Don't
> > Send window and zope server breaks down. ( yes i use windows Xp
> Pro,
> > Zope 2.7.0, Python 2.3.3)
> 
> Sorry, that made no sense.
> 
> I suspect you need to have the template above generate a link to
> another 
> method which actually returns the image data, sets content
> disposition, 
> etc. All pretty yucky stuff...
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk

Dear friend thank you for your reply.
I have posted another question (as you saw) in order to show that
i am a newbie and did not understand the part of your answer:
"> method which actually returns the image data, sets content
> disposition,
> etc. All pretty yucky stuff..."
i mean that i have searched how to make this method which actually
returns the image data, sets content disposition but found nothing.
Do you have any reading to sugest about this?


Thomas G. Apostolou
Software Engineer
Θωμάς Γ. Αποστόλου
Μηχανικός Λογισμικού


More information about the Zope mailing list