title: Converting base64 to image is giving bitmap data
body: <p>Iam trying to convert base64 to image and passing image data to jquery.while dislaying in data table it is not displaying image. because to jQuery image is not going</p>
  <pre><code> public Image Base64StringToImage(string base64String)
      {
          byte[] imageBytes = Convert.FromBase64String(base64String);
          MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length);
  
          ms.Write(imageBytes, 0, imageBytes.Length);
          var image = System.Drawing.Image.FromStream(ms);
          return image;
      }
  </code></pre>
  <p>this is my base 64 to image conversion.the following is my jquery.</p>
  <pre><code>  { 'data': 'EmpPhoto',
    &quot;render&quot;: function (Data, type, row, meta) {
    var imgsrc = 'data:image/png;base64,' + Data;
    return '&lt;img src=&quot;/media/' + imgsrc + '&quot; height=&quot;100px&quot; width=&quot;100px&quot;&gt;';
      }
   },   
  </code></pre>
  <p>But image is not displaying in screen because i am getting bitmap from base64 to image conversion .please help me out.</p>