|
-
Jul 8th, 2004, 07:47 AM
#1
How to Download From FTP...[Resolved]
I need to be able to download a file from an FTP server...
BUT!
Without the use of controls....
AND with a progress meter!
I have code that I thought was working but it seems to be cutting off about 2 MB of each file.
I cant post the code since it is huge......
Anybody got anything thats not to complex?
Thanks!
Last edited by Static; Jul 8th, 2004 at 09:58 AM.
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 8th, 2004, 08:02 AM
#2
Without a control, so does this mean you want to use APIs?
try doing a search for FtpGetFile.
As for a progress bar you could cheat
1. get file size before download
2. add a timer
3. use VB's FileLen function within the timer event
-
Jul 8th, 2004, 08:29 AM
#3
FtpGetFile freezes the app while downloading....
no good
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 8th, 2004, 09:05 AM
#4
Hyperactive Member
tried it using threads? there is a post in the codebank abouot multithreading that might help ya
here:
http://www.vbforums.com/showthread.p...hreadid=296315
Last edited by Colonel Klink; Jul 8th, 2004 at 09:18 AM.
Our Father, who 0wnz heaven, j00 r0ck!
May all 0ur base someday be belong to you!
May j00 0wn earth just like j00 0wn heaven.
Give us this day our warez, mp3z, and pr0n through a phat pipe.
And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.
-
Jul 8th, 2004, 09:31 AM
#5
too much work...(I have no time for that!) lol
workload is piled high enough as is...
need quick solution
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 8th, 2004, 09:46 AM
#6
If you don't have timme to implement it with threads, then you need to use a control. The reason controls exist for doing FTP is because it is not something you can just throw together in 5 minutes and have it working.
I have used the Chilkat FTP control and it has worked greate for me, plus it is free.
Info: http://www.chilkatsoft.com/ChilkatFtp.asp
Download: http://www.chilkatsoft.com/download/FtpActiveX.msi
-
Jul 8th, 2004, 09:53 AM
#7
I only wish....
we are restricted here to ONLY the controls installed in Access97 (Yes 97!!!)
sooo...I have been tweaking the code that I already have to get it to work....only thing that stinks is that each test of the file download takes a long time since the range from 90 to 110 MB!
Still open for suggestions...
thanks for your help so far
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 8th, 2004, 09:58 AM
#8
Ok...Thanks anyway..but I got the code to work correctly.
It seems by changing the Byte Array to be the buffersize - 1 works perfectly!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|