Page 3 of 4

Re: From Web to image control

Posted: Sat Nov 04, 2017 3:09 am
by huiyi_ch
Wonderful KDJ!

Re: From Web to image control

Posted: Sat Nov 04, 2017 9:19 am
by Anand
Great! Thanks KDJ.

Regards,

Anand

Re: From Web to image control

Posted: Sat Nov 04, 2017 11:17 am
by quartz565
Perfect Krzysztof! Thank you very much!

Re: From Web to image control

Posted: Sat Nov 04, 2017 5:21 pm
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

Re: From Web to image control

Posted: Sat Nov 04, 2017 9:11 pm
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?

Re: From Web to image control

Posted: Sat Nov 04, 2017 11:13 pm
by quartz565
Internet Explorer 11

Re: From Web to image control

Posted: Sun Nov 05, 2017 12:11 pm
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

Re: From Web to image control

Posted: Sun Nov 05, 2017 12:18 pm
by KDJ
Niko

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

ImageFromWeb.zip
(4.4 KiB) Downloaded 216 times

Re: From Web to image control

Posted: Sun Nov 05, 2017 2:37 pm
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

Re: From Web to image control

Posted: Mon Nov 06, 2017 7:24 pm
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