title: Byte array to UTF8 string
body: <p>I need to convert a byte array to a UTF8 string, and preserve the characters in the array.</p>
  
  <p>Im uploading an image using multipart post. The image is sent along as a UTF8 string. I've compared the headers from my app and web browser and the data is the same, apart from one thing.</p>
  
  <p>When it send along the browser, the content contains lots of [] characters, where as my app replaces [] with ?. Which means it's not preserving the characters as it should. Everything else is the same.</p>
  
  <p>Heres the code I have atm</p>
  
  <pre><code>Byte[] fileOpen = File.ReadAllBytes("C:/pic.jpeg");
  postData.AppendLine(System.Text.Encoding.UTF8.GetString(fileOpen));
  </code></pre>
  
  <p>Any advice?</p>