[Zope] Setting an image type

Casey Duncan cduncan@kaivo.com
Mon, 09 Jul 2001 08:45:35 -0600


"Schmidt, Allen J." wrote:
> 
> We have access to images stored on someone else's server. We are able to get
> to them from a path provided as a field in a database. I prepend the path
> with the static server address and use the result as an <IMG SRC=> tag.
> Works great in IE ... not at all in any Netscape except 6. The files are
> named with number references and no extension. IE can 'see' what the content
> type is but I guess NS cannot.
> 
> Is there anyway to tell Netscape that this IMG SRC really is a JPG file and
> to go ahead and display it? Can I add something to the header though Zope or
> the DTML-VAR when I display the image?
> 
> May not be a Zope issue but I figured there may be something Zope can do to
> the page as it loads.
> 
> Thanks
> 
> Allen
> 

Apparently, the remote server is not setting a Content-Type header for
the image when it is accessed. Is this remote server a web server? If
so, it sounds like a broken one.

There isn't much you can do about this at the Zope end, Zope doesn't
even see the data, the client grabs it directly from the other server.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>