Topic: Web Image Display

Hello Dmitry and all MVD fans,

In the context of my web page scraping tool, I successfully retrieve infos from a given web page, this works fine.

I also tried to parse and get images adresses on that same page to display on my Form.

  • I've tried LoadFromFile() but it's only local files.

  • I've tried LoadFromFile(HTTPGet(Image URL)), but still working locall so no success.

  • I've tried to load the image with HTTPGet on the image adress, then save it locally with WriteLnToFile then load it with LoadFromFile, but the result I get is garbage.

  • I've considered using LoadFromStream() but I was unable to initialise the additional function like IdHTTP

I'm out of ideas smile

Two questions :
1- Do you see a way around this with the function we have included in MVD at the moment ?
2- Is it possible to add functions by declaring something like uses .... IdHTTP (with the .pas or .dll file included in app folder of course) ?

have a good day

Cheers

Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Web Image Display

Hello,


I Added function HTTPGetFile
please download latest beta version
http://myvisualdatabase.com/forum/viewt … ?pid=10497

Dmitry.

Re: Web Image Display

Hello Dmitry,

As always, fast and efficient.

I had the opportunity to try the new function, and it works perfectly for images (and files) coming from sites in http AND https.

Thank you Dmitry, sincerely.

As soon as my clients pay their bills, I'll purchase my own licence !

Cheers

Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor