Images in a MySQL Database ?!?!
Breadfan
menno at phreaker.net
Wed Mar 14 21:55:33 EST 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"
method="post"enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit">
</form>
And the SQL I use is this :
"
file:string
---------------
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 : (
Greetings,
Menno
More information about the Python-list
mailing list