ImageEn, unit iexWindowsFunctions

IEGetFromURL


Declaration

function IEGetFromURL(const URL: WideString; OutStream: TStream; const ProxyAddress: WideString; const ProxyUser: WideString; const ProxyPassword: WideString; OnProgress: TIEProgressEvent; Sender: TObject; Aborting: pboolean; var FileExt: String): Boolean;


Description

Capture content from URL and output it to a stream.

URL Format:
'http://domain[:port]/resource' e.g. 'http://www.imageen.com/test.jpg'
'https://domain[:port]/resource'
'ftp://user:password@domain[:port]/resource' e.g. 'ftp://user:password@ftp.example.com/Pictures/test.jpg'

ProxyAddress Format:
'domain:port' e.g. '10.2.7.2:8080'

OnProgress and Sender can be nil.

FileExt includes an initial period.


Demo

Demo  Demos\ImageAcquisition\CaptFromIPCamera\CaptIPCamera.dpr


Example

stream := TIEJpegAcquireStream.Create;
fAborting := false;
IEGetFromURL('http://' + EditUser.Text + ':' + EditPassword.Text + '@' + EditIP.Text + EditAddress.Text, stream, '',  '', '',  nil, nil, @fAborting, outExt );
stream.Free;