No one wants to answer !!!
Sindh
skodela at my-deja.com
Sun Aug 27 08:58:37 EDT 2000
Thanks . I tried to reopen the stdin in binary mode. But could not find
the way.
My main problem is when I read a file like following the script hangs. I
don't get any error messages from apache either.
script below.
fs=cgi.FieldStorage()
if fs.has_key("file1"):
fname=fs["file1"]
if fname.file:
data=fname.file.read()
print len(data)
else:
blah blah ...
It works fine for text mode files but dies whan I try with binary or
image files. Even trying the script with python -u didnot work.
Thanks for your time
sreekant
--
A man needs to sleep for 36 hours a day atleast.
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list