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
which returns the data of the uploaded file.



-----Original Message-----
From: "Menno Brandsen" <[EMAIL PROTECTED]> 
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 

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to