title: Get the file size of an Image
body: <p>I search to get the file size (in bytes) of an image in C# :</p>
  
  <p>I get the image in a base64 string, but in this format I have the impression it's no possible to get the file size.</p>
  
  <p>So I transforme it in an image object like this :</p>
  
  <pre><code>// Convert Base64 String to byte[]
  byte[] imageBytes = Convert.FromBase64String(imageSrc);
  MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length);
  
  // Convert byte[] to Image
  ms.Write(imageBytes, 0, imageBytes.Length);
  Image imageObj = Image.FromStream(ms, true);
  </code></pre>
  
  <p>But i'm not able to get the file size. I can have the dimensions or the type but not the file size.</p>
  
  <p>Have you got an idea on that please?</p>