PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Image from url to image controle
Image from url to image controle
Iniciado por guest, 12,mar. 2015 14:58 - 2 respuestas
Publicado el 12,marzo 2015 - 14:58
Hello,

I receive from a webservice with XMLExtractString an url like "<a class="ExternalLink" rel="nofollow" target="_blank" href="http://images.xxx.nl/Logos/product-categories/filters.jpg">
<img src="http://images.xxx.nl/Logos/product-categories/filters.jpg" border="0" class="ExternalImage" onerror="OnImageLoadFailure(this);"/>
</a>"
How can i display this image in a image controle?
Publicado el 12,marzo 2015 - 15:40
Hi Sammy

you need to first download it with httprequest/htppgetresult/fsavebuffer
then display it normally from the created file

You MAY also be able to put the result of the httpgetresult directly in an image variable and disply it from there

Best regards
Publicado el 12,marzo 2015 - 17:13
It´s very easy with httprequest("Image link") and then httpgetresult()

Thanks!

The code:

Productgroep is string = HTTPGetResult()

EDT_Populair1 = XMLExtractString(Productgroep,"Name",1)

//Afbeelding
HTTPRequest(XMLExtractString(Productgroep,"ImageUrl",1))
IMG_NoName1 = HTTPGetResult()