The frame is located on 1 main form, the above code works in the stream, must save the image to a folder, but sometimes stops rewriting the image and stops.
Fix: TMemoryStream; png: TPNGObject; begin Fix := TMemoryStream.Create; png := TPNGObject.Create; Form1.Frame11.idhttp1.Get('http://www.work.net/captcha/captcha-st/captcha.php?sid=' + sid, Fix); Fix.Position := 0; png.LoadFromStream(Fix); png.SaveToFile('accounts\akk' + Form1.Frame11.label1.Caption + '/' + '1.png'); Fix.Free; png.Free; end;
Form1.Frame11.label1.Caption. - Igor