I am creating a ZIP file on the fly and streaming it out to the client using Response.WriteFile(FileName, StartPos,
FileSize). Because this ZIP contains files that are on my server and I don't really want a bunch of duplcate data
filling up my server I need to delete the ZIP file after it's streamed to the client. So I do something like this:
Response.WriteFile(FileName, StartPos, FileSize)
File.Delete(filelocation & FileName)
Well this doesn't work very well because apparently the response is still being written when the delete command is
issued. Buffering is not on and I don't really want it on because I don't think there is enough server RAM to ever
handle the amount buffering that this would require (these zip files can be very large, like 50 MB just for one user).
So, what's a developer to do?
--Buddy