William Heymann wrote:
I am trying to integrate a webcamera with a site and I can get it to POST the data to a certain url on the server the problem is I can't figure out how to get access to the data. It is not in REQUEST.form

the relevant request vars are

('CONTENT_LENGTH', '111695')
('CONTENT_TYPE', 'image/jpeg')
('HTTP_CONTENT_DISPOSITION', 'attachment; filename="image01-07-29_05-54-26-96.jpg"')

This is being posted to a python script object inside zope, however if I need to use an external method that is not a problem I just need to figure out how to get the data.

If the file is posted as attachment (similar to file upload) it should
appear in the relevant form element as file. You can just use the method
.read() on it to get the data (or feed it into factory of image/file)

For this to work the data needs to be sent as enctype="multipart/form-data" (hopefully the cam does this).

Maybe you send all variables of the request to figure out.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to