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

InternetReadFile and bytes

Status
Not open for further replies.

JanyMoon

Programmer
Oct 17, 2005
12
SI
Hi!
I use InternetReadFile() function to read bytes from FTP server. But I not sure about number of bytes to read in one time. Have any idea what is the best number?
For now I use 4096 and works fine.
eg.
lnBytes=4096
InternetReadFile( lhFile, @lcBuffer, lnBytes, @lnBytesRead )

 
I think the best answer to that is whatever works for you.
So much depends on network/internet traffic, dial-up vs. broadband, server load, etc.

Experiment a little and see if you get better results or faster performance, but the way I see it, "If it ain't broke, don't fix it."


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top