[Zope] Question from ZopeNewbies poster. . .

2000-06-30 Thread addyd

I am forwarding to this list the following question asked on the
ZopeNewbies discussion list today.
I have told the poster about this list. You may wish to post your answer
both here and on the ZopeNewbies discussion list page to make sure the
poster sees your answer.

Author:   Kelvin, Tze Wai Cheong
Posted:   6/30/00; 3:46:51 AM
Msg#: 658 (top msg in thread)


I'm developing a web-site which requires the storage of images in the
database. I have defined this field as LONGBLOB in my database tables. The
problem is I can't insert the image at the insert form, and worse of all I
don't know how to start. according to the mySQL manual from mySQL.com's
documentation, I should be storing the path of the picture file into the
database. I have tried but ZOPE defined a floating-point error regarding
the field.

How should I go around this?
:::
Darren Addy
Internet Specialist and
Interim Web Presence Coordinator
Office of Information Technology Services
University of Nebraska at Kearney


___
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 )




Re: [Zope] Question from ZopeNewbies poster. . .

2000-06-30 Thread Jerome ALET

On Fri, Jun 30, 2000 at 10:13:37AM -0500, [EMAIL PROTECTED] wrote:
 problem is I can't insert the image at the insert form, and worse of all I
 don't know how to start. 

define your HTML form as:

form action="your_dtml_method" method="POST" 
  enctype="multipart/form-data"
  Filename: input type="file" name="myfile"
/form

then in your_dtml_method REQUEST['file'] should contain your 
file contents IIRC.

good luck

Jerome Alet

___
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 )