July 13, 2024, 08:13:30 PM

News:

IWBasic runs in Windows 11!


Need help

Started by DominiqueB, December 03, 2006, 12:25:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DominiqueB

December 03, 2006, 12:25:03 PM Last Edit: December 03, 2006, 12:28:25 PM by DominiqueB
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

ExMember001

look at the internet_example.eba file in the sample folder ;)

splakidas

krypt what does the internet example ? for me it opens only a console, prints some html-code and nothing more !!! ???

ExMember001

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.

ExMember001

here's a more elaborate example by Joske on Coding Monkey:
http://www.codingmonkeys.com/index.php?topic=677.0

DominiqueB

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

DominiqueB

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

ExMember001

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 ;)