> 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

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

Reply via email to