How to get the cententLength of image obtained with image tag?

how do I get the cententLength of image"s response header obtained with the image tag?

Mar.23,2021

the src that gets the image tag initiates a get request for ajax and then takes



let img= new Image;
img.src= "xxx.png";
then uses igm.onload to get


  var img = new Image();
  img.src = "";
  img.onload = function(){
     alert(img.width);
     alert(img.height);
  }

you can't get it with image tag

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5a855-65bcf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5a855-65bcf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?