title: how to convert Image to string the most efficient way?
body: <p>I want to convert an image file to a string. The following works:</p>
  
  <pre><code>MemoryStream ms = new MemoryStream();
  
  Image1.Save(ms, ImageFormat.Jpeg);
  
  byte[] picture = ms.ToArray();
  string formmattedPic = Convert.ToBase64String(picture);
  </code></pre>
  
  <p>However, when saving this to a XmlWriter, it takes ages before it's saved(20secs for a 26k image file). Is there a way to speed this action up?</p>
  
  <p>Thanks,</p>
  
  <p>Raks</p>