title: How to reduce jpg size saved from a base64 string C#
body: <p>I'm receiving a base64 string from the client side that represents a jpg and I'm saving it using the following code </p>
  
  <pre><code>byte[] imageBytes = Convert.FromBase64String(base64File.base64Data);                
  using (var ms = new MemoryStream(imageBytes, 0, imageBytes.Length))
                  {
                      Image image = Image.FromStream(ms, true);                    
                      image.Save("aPath");                    
                  }
  </code></pre>
  
  <p>The problem is that that the original image entered on the client side (before the base64 encoding) is about 3MB and once that I save it using the method above, it turns to be a 24MB image!</p>
  
  <p>Is there any way to reduce it's size? (I know that sending big images encoded in base64 is not very smart, but I need to find a solution keeping this part)</p>