Uploading a stack
Richard MacLemale
rmaclema at tampabay.rr.com
Fri Aug 2 14:06:01 EDT 2002
I know that if there were a quota for questions, I would have exceeded it
days ago... You can tell I'm coming close to finishing this program, huh?
OK. I haven't used libUrl in a long time, and I really like the new
version. Very cool! The help is great.
And so my question - what is currently the best way to upload a 2 MB stack
via ftp? If you use libUrl's put command, that means the whole stack would
have to be read into a variable before being sent, right? That's probably
not the end of the world, but if there's a better way built in I'd be
interested in hearing it.
A couple of years ago I wrote a routine that would open a socket connection,
and then read 5K of a file, send it, read the next 5K, send it, etc, until
the whole file was sent. In this manner, the whole file did not have to be
loaded into RAM because it was being read and sent 5K at a time. It worked,
but it was a major pain in the butt to write, modify, and debug. I'd just
as soon avoid that. I'm assuming that libUrl does not have that
functionality?
Like I said, I can live with loading 2 MB into RAM, but it seems like there
ought to be a better way and if there is I'd like to know it...
Sorry to be a pain. :)
--
:)
Richard MacLemale
Network Administrator
J. W. Mitchell High School
More information about the metacard
mailing list