AH HA!
I got it!
When using the upload hack on NT4 you must add the binmode function just after opening the file and BEFORE using the filehandle.
My NT or some variant of the PERL library etc. opens the file in a text mode and translates 0A (linefeed) to 0D0A (carriage return, linefeed). The corrupt file was filled with 0D's that shouldn't have been there. They were next to each 0A that was in the original graphic file.
Open upload.cgi and find...
undef $BytesRead;
undef $Buffer;
while ($Bytes = read($File_Handle,$Buffer,1024)) {
$BytesRead += $Bytes;
print OUTFILE $Buffer;
And add just BEFORE it...
binmode OUTFILE;
I tested this on text files as well and the file was created identically. This only needs to be done on an operating system that distinguishes between text and binary files.
Great hack by the way, I have learned a great deal during its installation.
Thanks all,
Tim