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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP - Upload Large Files using VB6

Status
Not open for further replies.

AccessGuruCarl

Programmer
Jul 3, 2004
471
US
Hello All...

I must have over 40 different sample files I've download from various sites, or created from example code!

They all work... To some point... BUT

None of them has successfully uploaded a file that was larger than 200MB in size twice in a row!!! If that, if I was lucky.

1st file is an executable setup file.
2nd file is a rarred .mdb file

I've made sure that Binary Mode was set...

Consistant Error # 12030
Internet Write File Error - Connection was terminated abnormally.

Does anyone have any idea's whats causing this...

Even better yet....
Has anyone ever tried uploading a file larger than 200MB... with any of the code thats floating around!

PLEASE HELP!!!!!!!
I'm burning up all the space they allow in a month for data transfers... Trying to get this to work!

A quick look through the recent post's regarding ftp... Will show some of the example's I've put to use.
Basically using WinInet API's PutFile

I even found a sample at Microsoft, vbsmpftp...
Tried with and without chunking it into pieces.
Same error..........

I've found some code that was VB.Net that allows resumes in both up and download, but when I tried importing the class module most the code is in RED....

Can VB.Net code be converted to VB6...
I'd love to give that sample a try, if anyone could convert it... :)

Please send your suggestions....

AccessGuruCarl
Programmers helping programmers
you can't find a better site.
 
How long does it take before it fails and does this differ?
Maybe you have a timeout setting too short somewhere in your internet connection and it is not recogising FTP
 
I usually get about 70% give or take before it crashes.

Using WS_FTP Pro... I can upload the 1st file in approx 1hr 35min..

I'm getting the same results across several pc's.
1 - My customer...
- Not sure how the network is setup...
2 - My home connection
- Cable Modem, 10/100/1000 router & switch
- 10/100/1000 NIC
3 - Now have my father testing as well
- Cable Modem --> Straight to PC

Can you or have you successfully uploaded large files using the WinInet.dll after searching other alternatives I found a link that says thiers a bug in it for uploading... And they suggest using the WinSock Control...
Here's a link to what I found...

Havn't had a chance to build a test app to try it...
I'll definately post my results!


AccessGuruCarl
Programmers helping programmers
you can't find a better site.
 
>40 different samples

Amongst those, did you try my code from thread222-1337638? I'd try the Command2_Click version.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top