Page 1 of 1

How to download an image by URL

Posted: Tue Oct 01, 2019 5:01 pm
by ForestListener
Hello!

Is there way to download an image by its URL and save it to local disk?

Thank you!!!

Re: How to download an image by URL

Posted: Tue Oct 01, 2019 6:37 pm
by salvadordf
The MiniBrowser demo shows you how to do that :
https://github.com/salvadordf/CEF4Delph ... .pas#L1295

Basically, call TChromium.DownloadImage to download the image and implement the TChromium.OnDownloadImageFinished event to get the image data.