Hi All
Just wanted to know if anybody knows the answer to the following quick
queries:
1) The reason I'm using VB's INET control is to download copies of Ms Access
DBs on a range of web sites so that I have a backup. Found out from my ISP
that if my DBs go up the spout then it's down to me to restore - gulp!!!
I've created a little FTP gizmo where I could download web pages OK, but not
my Access DB files.
After hours of web trawling, I convinced myself that the reason these files
wouldn't download is because they are binary and my web pages are just text.
Went about the task of add a binary file creation routine and found it still
wouldn't run properly. To cut an already long story short, I had fell foul
to the short names problem with the INET control. Found out how to correct
this, but should I be using the binary method for these DBs or is the
standard string-y download OK??
The byte size and functionality seems to be OK, but because the main reason
is so that I have a true backup I just want to make sure.
2) I'm using chunks of 1024 to get the data, but this seems like I'm
bottlenecking my 512k connection. My problem is that when I set it to 4096
(being a good boy and keeping the byte size true) as a test, it seemed to
make the file bigger probably because the 4096 chunks went over the true
file size.
Is this OK to do so (I'm not sure) and if not is there anyway to get the
size of the file and create some kind of FTP algo to download the right
amount at the optimum speed?
Many thanks.
Rgds
Laphan
Just wanted to know if anybody knows the answer to the following quick
queries:
1) The reason I'm using VB's INET control is to download copies of Ms Access
DBs on a range of web sites so that I have a backup. Found out from my ISP
that if my DBs go up the spout then it's down to me to restore - gulp!!!
I've created a little FTP gizmo where I could download web pages OK, but not
my Access DB files.
After hours of web trawling, I convinced myself that the reason these files
wouldn't download is because they are binary and my web pages are just text.
Went about the task of add a binary file creation routine and found it still
wouldn't run properly. To cut an already long story short, I had fell foul
to the short names problem with the INET control. Found out how to correct
this, but should I be using the binary method for these DBs or is the
standard string-y download OK??
The byte size and functionality seems to be OK, but because the main reason
is so that I have a true backup I just want to make sure.
2) I'm using chunks of 1024 to get the data, but this seems like I'm
bottlenecking my 512k connection. My problem is that when I set it to 4096
(being a good boy and keeping the byte size true) as a test, it seemed to
make the file bigger probably because the 4096 chunks went over the true
file size.
Is this OK to do so (I'm not sure) and if not is there anyway to get the
size of the file and create some kind of FTP algo to download the right
amount at the optimum speed?
Many thanks.
Rgds
Laphan
Comment