Search code examples
.netdelphihttpdelphi-prism

Save HTTP jpeg image on computer using Delphi Prism?


I have a script written using Delphi Prism to extract specific images on webpages.

I got up to the part where i can show the image in PictureBox by simply placing the url in PictureBox.ImageLocation

How can I save this image to somewhere on my computer?

many thanks


Solution

  • Use the DownloadFile method from System.Net.WebClient.