saving an (web) uploaded file in binary format on NT
Posted on 1998-06-20
I am using netscapes (4.04) file upload form element with the multipart/form-data encoding type to send a file from the client to a directory on the webserver (IIS). Works great for text files, but binary files (exe, jpg, gif, etc) get 100-200 bytes tacked onto them, cause a network error message to pop up on the client. Copy actually happens, but file is a wee bit bigger and no longer valid. I have seen the binmode() function used when the server is sending a binary to the client (like with the FLY graphic program), but I dont know if there is an equivalent for the servers STDIN and the output file on the server.