function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sri549Sri549 

How to download any files from public sites using apex class

Hi Guys,

How to download any files(JPEG,Png & more ) from public sites such as google.com, or any other sites using apex class ?

Thanks!
Srinivas
VinayVinay (Salesforce Developers) 
Hi Srinivas,

Check below example.

https://developer.salesforce.com/forums/?id=906F00000008knNIAQ

Thanks,
Suraj Tripathi 47Suraj Tripathi 47
Hi,

Please follow the link:-
https://developer.salesforce.com/forums/?id=906F0000000ApEAIA0


Please mark it as Best Answer if it helps you.

Thanks & Regards
Suraj Tripathi
Sri549Sri549
Hi , I tried both, but I am getting blank in body. Do we have any alternative? *Thanks!* *Srinivas Gupta Kotha* Sr.Technical Lead, Innovation - IT. USAA Tel: +1 619 361 0371 9835 Fredericksberg Rd, San Antonio, TX, 78240, USA Linked In URL : https://www.linkedin.com/in/srinivas-gupta-kotha-43123498