|Subject:||IdHTTP and AXIX IP Camera|
|Posted by:||Quinn (qui…@thehost.co.za)|
|Date:||Mon, 28 Mar 2011|
Delphi 7 Indy 10.5.8
I was having intermittent problems getting a JPEG from and AXIS camera.
It worked but every now and then the image would be problematic.
I wondered if it was Indy 10.2.3 so I upgraded to 10.5.8
Now I cannot get images at all.
This code used to work.
IdHTTP := TIdHTTP.Create( nil );
IdHTTP.Request.BasicAuthentication := True;
IdHTTP.Request.Username := sUSER;
IdHTTP.Request.Password := sPASS;
imageStr := IdHTTP.Get( 'http://' + sIP + sCMD );
imageStream := TStringStream.Create( imageStr );
JpgImage.LoadFromStream( imageStream );
I don't just want to revert back to older ver of Indy.
There must be more properties to set with the new version that I do not know
Can you please advise.