durusmail: quixote-users: uploading large files
uploading large files
2005-01-27
2005-01-27
2005-01-27
2005-01-27
2005-01-27
2005-01-27
2005-01-27
2005-01-27
2005-01-27
uploading large files
Graham Fawcett
2005-01-27
mso@oz.net wrote:

>Then there's the efficiency
>issue: the browser has to base64-encode the file, making it larger than it
>is, and the server has to decode it.
>
You don't have to use base64 encoding, unless you're uploading via a Web
browser as part of a form submission; base64 only comes into play as
part of the multipart/form-data encoding. Write your own user agent
(say, via httplib) and you can send raw binary (e.g.,
application/octet-stream) just fine.

>It often works better in a LAN to
>put the file in a network-mounted directory and have the server pick it
>up, either triggered by a web request or automatically by a cron job.
>
>
In a LAN, yes; but Web apps usually have a wider audience than the
members of one's local network.

-- Graham


reply