title: Avoiding File Corruption due to Power Outages
body: <p>I'm writing a simple application  in .Net C# that will upload ZIP files to a central server for processing. </p>
  
  <p>However, the environment that this application will be use it is susceptible to frequent power outages. </p>
  
  <p>I'm currently reading the file in using File.ReadAllBytes and uploading by passing the resulting byte array to WebClient.UploadData.</p>
  
  <p>Assuming that a power outage interrupts the call to ReadAllBytes, could file corruption occur and how best to deal with that possibility?</p>
  
  <p>Thanks,</p>
  
  <p>Roberto</p>