OverflowError while sending large file via socket

Paul Rubin http
Sun Apr 12 18:28:43 EDT 2009


Ryniek90 <ryniek90 at gmail.com> writes:
> When i wanted to send an .iso file of 4GB length, i had traceback:
> "OverflowError: requested number of bytes is more than a Python string
> can hold"

You're not supposed to put the 4GB all in one string.  Open the
socket and send smaller packets through it.



More information about the Python-list mailing list