[Zope] Getting image

Daniel.Weber@SEMATECH.Org Daniel.Weber@SEMATECH.Org
Wed, 15 Mar 2000 14:17:25 -0600


I guess I'm confused.  I can't get to the actual jpeg image?  Here's what I'm
trying to do.  I want to create a form to upload data.  This data can be off any
type.  The data is stored in an ODBC database table along with it's mime type.
So, on the upload action form, I need to 1)  get the mime type and 2) get the
actual data.  Another part of the site mails off these items as attachments.
I've heard that the mime type should be uploaded along with the data, I just
don't know how to get to it.

> -----Original Message-----
> From: Michel Pelletier [mailto:michel@digicool.com]
> Sent: Wednesday, March 15, 2000 12:54 PM
> To: Daniel.Weber@SEMATECH.Org
> Cc: zope@zope.org
> Subject: Re: [Zope] Getting image
> 
> 
> Daniel.Weber@SEMATECH.Org wrote:
> > 
> > I uploaded an image and want to attach it to an email 
> message using <dtml-mime>.
> > How do I get the actual image?  <dtml-var image> gives me 
> the <img > tag.
> > "image.content_type" gives me content type properly, but I 
> don't know the
> > property name for the actual data.
> 
> Hmm.. unfortunatly there is no good way to do this from DTML except to
> use manage_FTPget().  Yuk.  This lack will be fixed in the near future
> when we re-do alot of the Zope interfaces.  Currently we are in the
> middle of documenting all of the existing interfaces which obviously
> must come first.
> 
> -Michel
>