IonicWind Software

IWBasic => GUI Central => Topic started by: DominiqueB on December 03, 2006, 12:25:03 PM

Title: Need help
Post by: DominiqueB on December 03, 2006, 12:25:03 PM
hello,
suppose i have a browser control oppened with an url containning an image.
What command should i use to save the image (given the complete image url) to local disk ?

Here is for example an img url :
"http://images.viapresse.com/Zooms/3780/1648/023023178001.jpg"

I know how to get the complete url:
"BROWSECMD(wb,@GETNAVURL,CodeBarre$,255)"

I would whant to localy save the image under the name "37801648023023178001.jpg"

Thank's for any help

Dominique
Title: Re: Need help
Post by: ExMember001 on December 03, 2006, 01:57:23 PM
look at the internet_example.eba file in the sample folder ;)
Title: Re: Need help
Post by: splakidas on December 03, 2006, 02:12:14 PM
krypt what does the internet example ? for me it opens only a console, prints some html-code and nothing more !!! ???
Title: Re: Need help
Post by: ExMember001 on December 03, 2006, 02:16:40 PM
the example show how to download a file and read it ;)
while it download google.com index file, it print result return by the buffer.
Title: Re: Need help
Post by: ExMember001 on December 03, 2006, 02:59:19 PM
here's a more elaborate example by Joske on Coding Monkey:
http://www.codingmonkeys.com/index.php?topic=677.0
Title: Re: Need help
Post by: DominiqueB on December 03, 2006, 03:36:50 PM
Thank's

finaly i used the windows func: "URLDownloadToFileA" as i know the complete url for the image,
all is ok. The image is then dowloaded localy.

Thank's

Dominique
Title: Re: Need help
Post by: DominiqueB on December 03, 2006, 03:48:33 PM
Another question:
in my window i have a text field that i complete with the commandline parameter i received in the "Case @IDCREATE" part with a "SetControlText win,2,GetArg(1)"
GetArg(1) is a sub i created that return a string containing the 1 commandline arg.

But the text field isn't completed with the text i give it ?

Is it the good place to complete the text field ?

Thank's

Dominique
Title: Re: Need help
Post by: ExMember001 on December 03, 2006, 04:34:08 PM
Quote from: DominiqueB on December 03, 2006, 03:36:50 PM
Thank's

finaly i used the windows func: "URLDownloadToFileA" as i know the complete url for the image,
all is ok. The image is then dowloaded localy.

Thank's

Dominique

i had didnt think about this one, even better ;)