[Zope] How can I upload files to mySQL
Dieter Maurer
dieter@handshake.de
Tue, 20 Jun 2000 22:11:17 +0200 (CEST)
> I am using Zope and mySQL and want to load up text and Images to text or =
> blob fields.
>
> How can I upload file content to TEXT (plain text)=20
> and BLOB (images: jpg, gif) using DTML?
I can answer only part of your question.
Uploaded files are "ZPublisher.FileUpload" objects which
you can find in the REQUEST object under the form field
name. They have a "read" method returning the content
as a string.
Placing the string into a text field should be straight forward
(same way you did it up to now).
I do not know, how MySQL wants to receive BLOB values, though.
Dieter