Page 1 of 1

DownloadImage

Posted: Fri Aug 30, 2024 11:15 am
by dilfich
Hi, I ran into a problem.
If a website is opened in the browser that is distinguishable from the link to the image, it is no longer possible to download it.
Is there anything we can do about it?

https://postimg.cc/MMnnT9qb

Re: DownloadImage

Posted: Fri Aug 30, 2024 1:03 pm
by salvadordf
Hi,

if TChromiumCore.DownloadImage and TChromiumCore.StartDownload don't work then try using the code in the URLRequest demo.

Re: DownloadImage

Posted: Fri Aug 30, 2024 2:02 pm
by dilfich
But there is no way to use the same proxy. Perhaps the problem is an incorrect Referer. Is it possible to install it when downloading?
DownloadImage - specifies the referrer of the page

Re: DownloadImage

Posted: Fri Aug 30, 2024 2:17 pm
by salvadordf
Try the Page.getResourceContent DevTools method :
https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-getResourceContent

The last resort is using the ResponseFilterBrowser demo.