sending a file through sockets
Irmen de Jong
irmen at NOSPAMREMOVETHISxs4all.nl
Thu Jul 4 18:11:07 EDT 2002
Bo M. Maryniuck wrote:
> On Thursday 04 July 2002 16:20, Guyon Mor� wrote:
>
>>-------
>>encode some_file.jpg to basecode64 makes: SsDfgFVSFgfsaSZFASasfgAS
>>in send it through the socket and decode it back and write it to a file.
>>-------
>>right?
>
>
> Yup!
>
Nope.
That is totally unnecessary. You can send any string over a socket
connection, also the open('somefile').read() string, without having
to encode/decode it to some ASCII form.
See the other posting in this thread (by brueckd at tbye.com) for more info...
Irmen
More information about the Python-list
mailing list