Declaration
function LoadFromURL(const URL: WideString): Boolean;
Description
Loads the image from the internet using the HTTP or FTP protocol (WinInet Unicode APIs).
Password authentication for HTTP is NOT supported, while it is necessary for FTP (even if connecting to an anonymous server).
URL must be in the format:
'http://domain[:port]/resource'
'https://domain[:port]/resource'
'ftp://user:password@domain[:port]/resource'
Non-ASCII characters in the host, path, credentials or proxy are supported.
It is possible to set proxy parameters using
ProxyAddress,
ProxyUser and
ProxyPassword properties.
Example
// Load from standard port 80
ImageEnView1.IO.LoadFromURL('http://www.imageen.com/graphics/imageen.gif');
// Load from port 8080
ImageEnView1.IO.LoadFromURL('http://www.imageen.com:8080/graphics/imageen.gif');
// Load from FTP
ImageEnView1.IO.LoadFromURL('ftp://space:shuttle@ftp.example.com/Pictures/test.jpg')