Pickle file and send via socket

Ramchandra Apte maniandram01 at gmail.com
Mon Aug 6 09:49:29 EDT 2012


You can use pickle.dumps<http://docs.python.org/library/pickle.html#pickle.dumps>
 and pickle.loads <http://docs.python.org/library/pickle.html#pickle.loads>

On 6 August 2012 19:17, Ramchandra Apte <maniandram01 at gmail.com> wrote:

> This is *absolutely* possible.
> Did you know that IDLE uses this very method when run in sub-process mode!
>
>
> On 6 August 2012 19:02, S.B <hyperboogie at gmail.com> wrote:
>
>> Hello friends
>>
>> Does anyone know if it's possible to pickle and un-pickle a file across a
>> network socket. i.e:
>> First host pickles a file object and writes the pickled file object to a
>> client socket.
>> Second host reads the pickled file object from the server socket and
>> un-pickles it.
>>
>> Can anyone provide a simple code example of the client and server sides?
>>
>> Thanks
>>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120806/b5732580/attachment.html>


More information about the Python-list mailing list