ary, it is very easy, but there's
some detail that I am missing. Maybe I just don't know what a "normal file"
is...
Regards,
JJ
Dieter Maurer wrote:
Joh Johannsen writes:
But it says: "In you python external method you can now reference
REQUEST.form['attached_file'] as a nor
Dieter Maurer wrote:
Joh Johannsen writes:
What sort of object is this "REQUEST.form['attached_file']"? Is there some
way to find out this sort of thing when you have a Python object? (I'm new
to Python)
It is a "ZPublisher.HTTPRequest.FileUpload" objec
OK, there is a How-To on that, which is helpful, by benno
But it says: "In you python external method you can now reference
REQUEST.form['attached_file'] as a normal file. You can
perform things such as read() on the object. "
Now in my Python external method, I can
This works with mysql:
1. make mysql table with a LONGBLOB field for holding the image, suppose you
make it a field called "imageData"
2. in your DTML, do this (assume getImage gets the image you want)
dtml-in getImage
dtml-call "RESPONSE.setHeader('content-type','image/png')"
dtml-return