20 Jun
2000
20 Jun
'00
8:11 p.m.
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