Short answer... a heck of a lot of ASP code. ASP is not really designed to read/write binary files whatsoever... as all the filesystemobject commands are for text files. Even uploading binary files using just ASP is a lot of work and quite demanding for the server.
The advantage ASP has over php is the fact that you have the option to use compiled objects... it's the way to go.