I have one image runat server,with id => myImageId, Image src is in base64
var convertedImage = Convert.ToBase64String(
                    File.ReadAllBytes(somePath),
                );
myImageId.Src = @"data:image/gif;base64," + convertedImage ;
I want to resize this image if is very big (max_width = 400; max_height = 400), in aspx page I can to set attribute 'max-width' and 'max_height' but converted image have same resolution, how I can to resize image before convert to base 64 to set max width and height?
 
     
    