[Image-SIG] NT, IIS and png
Thu, 10 May 2001 18:37:03 +0200
Anja Kipfer <firstname.lastname@example.org> wrote:
> Do I need a certain environment-variable or similar to be=20
> able to write in sys.stdout?
No, the problem is most likely that you're not writing to
stdout as a binary file. LFs are probably being changed into
CRLFs, making the file invalid.
Check your IIS Python-script-handler in 'Home directory->
Configuration' - if I remember correctly, you need the '-u'
switch to get a binary stdout, so the command should probably
be something like
X:\Program Files\Python\python.exe -u "%s" "%s"
Does that fix it?