[Zope-DB] Displaying BLOB's with Zope

Charlie Clark charlie@begeistert.org
Thu, 30 Jan 2003 09:48:02 +0100


On 2003-01-30 at 01:25:49 [+0100], Mark Evans wrote:
> <dtml-var standard_html_header>
> Method 1: Display image in-line, retrieved by External Method<BR> <img 
> src=&dtml-blobtest;>
> </p>
> <dtml-var standard_html_footer>
> 
> What I want it to do is display the image on the html page.  What it does 
> is open a browser dialog box asking me to select an application to open a 
> file of type 'application/octet-stream'.  If I select an image viewing 
> program like IrfanView, Irfan tells me the file is of type jpeg, but 
> missing the file extension.  When I click 'ok' it displays the correct 
> image and displays it properly.

I'm not an expert on this but you might try adding and extension ".jpg" in 
the source
ie.
<img src=&dtml-blobtest;.jpg>

This might convince your browser to render the image itself.

Good luck!