You need the relative path of the image file. First, get the path name where the web page is located. Make sure it ends with a backslash (myPath). Then take the complete filename of the image file (imgFileName).
if pos(myPath,imgFileName) = 1 then
System.Delete(imgFileName,1,Length(myPath))...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.