From: Brent W. <bre...@in...> - 2001-01-31 18:52:50
|
That suggests that the puts down the pipe by tclhttpd's cgi.tcl is not in binary mode, ... - ouch! that's it, looks like that direction of the pipe is not in binary mode. You can patch that in yourself - you can see in cgi.tcl in the CgiSpawn procedure where TclHttpd is about to copy the POST data down the pipe. In TclHttpd3.2.1 there is an fcopy call there. In the current CVS sources there is a registration of CgiCopyPost via a fileevent. Shortly the CVS sources will also have fconfigure $fd -translation binary >>>"Anders Nilsson" said: > > Instead of puts' back to the browser, why don't you open a file > > and write it out there? How does that work? > > Tried that, gets the same result... > > set fhnew [open "result.gif" w] > fconfigure $fhnew -trans binary > puts -nonewline $fhnew $result > close $fhnew > > /Anders N -- Brent Welch <bre...@in...> http://www.interwoven.com |