If there an easy way to get the size of the image on a webpage WITHOUT downloading the image first
Shot in the dark but maybe check the 'Content-Length' part of a response to a HTTP HEAD request?
If you can get the image URL then maybe something like the following
WinHttpReq = ObjectCreate("WinHttp.WinHttpRequest.5.1")
WinHttpReq.Open("HEAD","http://forum.winbatch.com/Themes/Winbatch/current_forum.png", @FALSE)
WinHttpReq.Send()
WinHttpReq.WaitForResponse()
strHeader = WinHttpReq.GetResponseHeader("Content-Length")
Message("Image Size", strHeader:' bytes')
That works great. Thanks TD