-->
Page 1 of 1

Get request - download image

PostPosted: Wed Aug 19, 2020 10:09 am
by Arieel
Hello, it’s possible to download an image from a webpage with the Esp8266/Esp32?
My idea is to download an image from the server that generates the GoPro camera (http server), and upload the image to google drive, but first, I want to try downloading from any webpage only to try code.
I think it’s necessary to make an http get request, but I don’t know much about https, so I don’t know if it’s possible to make.
Any idea or example to start?
Thanks!

Re: Get request - download image

PostPosted: Thu Aug 20, 2020 12:29 am
by JurajA
use the ESP8266HttpClient library

Re: Get request - download image

PostPosted: Thu Aug 20, 2020 6:00 am
by Coalmichaelle
To include images in HTML, you use the <img> tag with the src attribute, as follows:

<img src="image_source">
You can use an URL that links to the source of any image that is store on the internet.

<img src="https://example.com/your_image_source_url.png">
So, to display the image, you just need to include the previous HTML text in your web server code.