I have a basic File Upload web site that allows users to upload files. The files are then written out to two separate servers. I've been using code similar to this:
This works fine if the user uploads a file less than 64 MB. If the file is larger than 64 MB I receive an IOException. Microsoft indicates this is "by design", as this error is described in the method documentation. http://msdn.microsoft.com/en-us/library/system.io.file.writeallbytes.aspx
I also tried using FileStream, but that doesn't work. Interestingly enough, File.WriteAllBytes uses a FileStream internally. Even though the msdn documentation for FileStream doesn't explicitly state the same 64 MB limit when writing to a UNC location, the FileStream class still fails with files over 64mb.
Does anyone know of a good way to write a file larger than 64MB to a UNC location?
Sorry about the low points for this question. I only have 120 left.