[Zope-dev] (no subject)

Gregor Heine heine@cdc-group.com
Sat, 17 Mar 2001 00:37:52 +0100


Hi Menno,

what you get from the form is a FileUpload object, so try this:
print file.__dict__
and you will find out that it has a method called
file.read()
which returns the data of the uploaded file.

Cheers,

Gregor!


-----Original Message-----
From: "Menno Brandsen" <menno@zreal.net> 
To: <zope-dev@zope.org> 
Date: Fri, 16 Mar 2001 03:46:45 +0100 
Subject: [Zope-dev] (no subject) 



I have a question regarding images in a MySQL Database 

I'm trying to insert (and retrieve) images into a mysql database I use a 
standard upload form and a normal insert statement in the sql. 
The output i get is this : <ZPublisher.HTTPRequest.FileUpload instance at 
86550c8> which is clearly not the correct data 

Can someone help me out with this, i need to get the data from the image in 
some sort of way, but i dont know how to do this ! 



Friendly greetings, 
Menno Brandsen