ImageEn, unit iemio

TImageEnMIO.LoadFromURL

TImageEnMIO.LoadFromURL


Declaration

procedure LoadFromURL(const URL: string);


Description

Load a multi-page file from the network using the HTTP or FTP protocol. URL must have the syntax:
'http://domain[:port]/resource'
'https://domain[:port]/resource'
'ftp://user:password@domain[:port]/resource'

It is possible to set proxy parameters using ProxyAddress, ProxyUser and ProxyPassword properties.

Note: This function doesn't support password authentication for HTTP, while it is necessary for FTP (also connecting to anonymous server).


Example

// load from standard port 80
ImageEnMView1.MIO.LoadFromURL('http://www.imageen.com/graphics/imageen.gif');

// load from port 8080
ImageEnMView1.MIO.LoadFromURL('http://www.imageen.com:8080/graphics/imageen.gif');

// load from FTP
ImageEnMView1.MIO.LoadFromURL('ftp://space:shuttle@ftp.example.com/Pictures/test.jpg')