title: How to convert raw data to JPEG file using C#
body: <p>I have such a string : </p>
  
  <pre><code>string x = 0x424D3630090000000000360010028000000C00100200011111111111333333333000000C40E0000C40E000000088888888BBBBCC262281FF231F7EFF251D81FF....."
  </code></pre>
  
  <p>I'm told to convert this string to JPEG image, I'm not sure about the actual data type of this string and I don't know how to convert it to JPEG. Could you give me at least a few tips about that? Thanks in advance.</p>
  
  <p>EDIT: </p>
  
  <p>I converted the string to byte Array like this : </p>
  
  <pre><code> byte[] bytes = Convert.FromBase64String("0x424D363009..");
  </code></pre>
  
  <p>And I get this exception : </p>
  
  <blockquote>
    <p>Invalid length for a Base-64 char array or string.</p>
  </blockquote>