title: Convert jpg Byte[] to Texture2D
body: <p>I need to import jpeg images into a WP7/XNA app with associated metadata. The program which manages these images exports to an XML file with an encoded byte[] of the jpg files. </p>
  
  <p>I've written a custom importer/processor which successfully imports the reserialized objects into my XNA project. </p>
  
  <p>My question is, given the byte[] of the jpg, what is the best way to convert it back to Texture2D.</p>
  
  <pre><code>// 'Standard' method for importing image
  Texture2D texture1 = Content.Load&lt;Texture2D&gt;("artwork"); // Uses the standard Content processor "Texture - XNA Framework" to import an image.
  
  // 'Custom' method
  var myCustomObject = Content.Load&lt;CompiledBNBImage&gt;("gamedata"); // Uses my custom content Processor to return POCO "CompiledBNBImage"
  byte[] myJPEGByteArray = myCustomObject.Image; // byte[] of jpeg
  Texture2D texture2 = ???? // What is the best way to convert myJPEGByteArray to a Texture2D?
  </code></pre>
  
  <p>Thanks very much for your help. :-)</p>
  
  <p>DS</p>