title: Convert the contents of a byte array to string
body: <p>I have a byte array that contains the data of an uploaded file which happens to be a Resume of an employee(.doc file). I did it with the help of the following lines of code</p>
  
  <pre><code>    AppSettingsReader rd = new AppSettingsReader();
  
      FileUpload arr = (FileUpload)upresume;
      Byte[] arrByte = null;
      if (arr.HasFile &amp;&amp; arr.PostedFile != null)
      {
          //To create a PostedFile
          HttpPostedFile File = upresume.PostedFile;
          //Create byte Array with file len
          arrByte = new Byte[File.ContentLength];
          //force the control to load data in array
          File.InputStream.Read(arrByte, 0, File.ContentLength);
      }
  </code></pre>
  
  <p>Now, I would like to get the contents of the uploaded file(resume) in string format either from the byte array or any other methods.
  PS: 'contents' literally refers to the contents of the resume; for example if the resume(uploaded file) contains a word 'programming', I would like to have the same word contained in the string.
  Please help me to solve this.</p>