title: Append byte array to StringBuilder
body: <p>I am trying append byte array to string builder, but not getting the result.</p>
  
  <p>I have to return it to the <strong>web service</strong> in the form of <strong>byte array</strong>.</p>
  
  <p>See my code below:</p>
  
  <pre><code>WriteableBitmap wbitmp = new WriteableBitmap((BitmapImage)image1.Source);
  wbitmp.SaveJpeg(ms, 400, 400, 0, 100);
  bytearray = ms.ToArray();
  </code></pre>
  
  <p>Now I am appending byte array to string builder.</p>
  
  <pre><code>StringBuilder stb1 = new StringBuilder();
  stb1.Append("&lt;image&gt;");
  for (int i = 0; i &lt; bytearray.Length; i++)
  {
      stb1.Append(bytearray[i]);
  }
  stb1.Append("&lt;/image&gt;");
  </code></pre>
  
  <p>XML String looks like this:</p>
  
  <pre><code> StringBuilder stb1 = new StringBuilder();
  
              stb1.Append("&lt;Title&gt;");
              stb1.Append("&lt;/Title&gt;");
              stb1.Append("&lt;image&gt;");
              stb1.Append("&lt;/image&gt;");
  </code></pre>
  
  <p>Thanks in advance!!</p>