From Web to image control

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

huiyi_ch
Posts: 172
Joined: Sat May 21, 2016 5:27 am

Re: From Web to image control

Post by huiyi_ch »

Wonderful KDJ!
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: From Web to image control

Post by Anand »

Great! Thanks KDJ.

Regards,

Anand
Regards,

Anand

Image
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

Perfect Krzysztof! Thank you very much!
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

hi Krzysztof,
Very nice work again!!

I have a problem with with some links:
While with the first link the images are saved in the table,
with the second one is not saved even though there are enough jpg images in the file (attachment).

//https://www.google.gr/search?tbm=isch&q ... 9&dpr=1.25

//https://www.google.gr/search?q=R3251161 ... 36&bih=759

Niko
webfile.zip
(234.76 KiB) Downloaded 177 times
Best Regards,
Nikos.

os: Windows Server 2019 - 64
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: From Web to image control

Post by KDJ »

quartz565 wrote: Sat Nov 04, 2017 5:21 pm webfile.zip
It looks as HTML5.
What version of Internet Explorer is in your system?
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

Internet Explorer 11
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

In this file (“webfile.txt”) which contains link of images, we have to find and put on a ARRAY all (or the first 20) the strings (links) that start with "HTTS://" and ends with “.JPG” or with “.PNG”
eg : htts://tsdsddk:dddsadas123456.jpg
htts://thisto123456.jpg
htts://thisanadto123456.png
….
I saw the relative Mol’s function “GetLinkFiles”
but I will need some help how to make this....

Niko
Best Regards,
Nikos.

os: Windows Server 2019 - 64
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: From Web to image control

Post by KDJ »

Niko

Try this version.
I added detection of image in attribute "data-src" inside "img" tags.

ImageFromWeb.zip
(4.4 KiB) Downloaded 217 times
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

Krzysztof,
now it works !!
the first 15-20 images are important in the result, but the program
starts after the first 20. Why does this happen?

(in this link : https://www.google.gr/search?q=R3251161 ... 36&bih=759)

Niko
Best Regards,
Nikos.

os: Windows Server 2019 - 64
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: From Web to image control

Post by KDJ »

Niko

In your internet browser probably (rather surely) is enabled handling of JavaScript.
If you disable JavaScript, you will see the same images in the browser and in my program.

--------
New version of ImageFromWeb:
- now in URL field you can type internet address or path to local html file.

ImageFromWeb.zip
(4.46 KiB) Downloaded 168 times
Post Reply