Include image from url
Posted: Wed Jul 04, 2018 12:28 am
Hi,
I would like to be able to add a web hosted image so that when I use SaveHTMLToStreamEx, images will be something like <img src="www.website.com/image.jpg" height="42" width="42">.
I copied code from the SharedImages demo but instead of using a local relative page, I used a url.
myURL := 'http://logilys.com/medias/logilys_header_frca.jpg'
gr := RVGraphicHandler.LoadFromFile(myURL);
This gives an error because it tries to add the application path before the http://.
Is there anyway to load from an url ?
I would like to be able to add a web hosted image so that when I use SaveHTMLToStreamEx, images will be something like <img src="www.website.com/image.jpg" height="42" width="42">.
I copied code from the SharedImages demo but instead of using a local relative page, I used a url.
myURL := 'http://logilys.com/medias/logilys_header_frca.jpg'
gr := RVGraphicHandler.LoadFromFile(myURL);
This gives an error because it tries to add the application path before the http://.
Is there anyway to load from an url ?