Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed with INET !

Status
Not open for further replies.

yakata

Programmer
Dec 13, 2000
30
FR
Hi there,

I've got a problem with INET. I have to get file in FTP from a Unix server. The files are named "std", "ft" and "header" without extension. I need to get them in Binary mode...
I've tried this

Private Sub cmdGET_Click()
Dim b() As Byte
Dim strURL As String

strURL = "ftp://USERID:pASSWORD@111.111.111.111/00000001/std"
b() = Inet1.OpenURL(strURL, 1)
Open "C:\std.txt" For Binary Access Write As #1
Put #1, , b()
Close #1
End sub

and it replies "Type mismatch" on the openurl command...
What do I miss ? The file is a video file.
TIA for a reply

Luc ))

 
"ftp://USERID:pASSWORD@111.111.111.111/00000001/std";

???? For what ; ?

"ftp://USERID:pASSWORD@111.111.111.111/00000001/std"
Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX.

Download Demo version on my Site:
Promotions before 02/28/2001 (free source codebook),visite my site
 
It's a bug eric, the ';' get's added to urls on tek-tips at the moment. It's been reported and it's on thelist to be done - but I don't know when it's scheduled.

Luc,

You could use the ftp commands to get the file, chunk by chunk, and save it to a a local file. There are some good instructions in the help file on how to use ftp. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Thank a lot for your reply, Eric and Mike !)

Yes Mike, I know a lot of good ftp instructions to do it in command line, I do actually have been obliged to do the work here above by a Shell command in VB.

But well it's asynchronous process, I have to spy the dos command window to be sure the transfer is done... Really bad job...

To say you more, I even have tried with the Inet1 FTP command (not the HTTP one as above).
Connection : ok
LS, CD : OK
GET : OK... in ascii mode...
And no command like BINARY in the good old FTP DOS Command(((

And my files don't want to be transferred in ascii mode...

If with this you have a better idea, you welcome !))

Success in your business, hope to be able to help you in return

Luc

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top