Images in a MySQL Database ?!?!

Breadfan menno at
Thu Mar 15 03:55:33 CET 2001

Hello, all. I'm trying to store images  in a MySQL database, using a upload
form on a zope server and it doesnt store it , it stores a string like this

"<ZPublisher.HTTPRequest.FileUpload instance at 86550c8>"

The forrm I use looks like this :

<form action="Insert_Banner_DTML"
<input type="file" name="file">
<input type="submit">

And the SQL I use is this :
INSERT into images (Image) VALUES
<dtml-sqlvar file type=string>

Can someone please help me out, by telling me what I'm doing wrong ?
I've tried to look for info on this matter, but i seem to find any good
material on it  : (


More information about the Python-list mailing list