Include image from url

General TRichView support forum. Please post your questions here
Post Reply
Posts: 13
Joined: Mon Jun 16, 2014 1:10 pm

Include image from url

Post by gdemers_logilys »


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="" height="42" width="42">.

I copied code from the SharedImages demo but instead of using a local relative page, I used a url.

myURL := ''
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 ?

Sergey Tkachenko
Site Admin
Posts: 14845
Joined: Sat Aug 27, 2005 10:28 am

Re: Include image from url

Post by Sergey Tkachenko »

RVGraphicHandler.LoadFromFile can load only local files. Remote files must be downloaded.
See viewtopic.php?f=3&t=5247

Post Reply