Re: Pickle file and send via socket

2022-02-18 Thread Chris Angelico
On Sat, 19 Feb 2022 at 05:47, UTKARSH PANDEY wrote: > > On Wednesday, August 8, 2012 at 8:37:33 PM UTC+5:30, lipska the kat wrote: > > ... > Directly read bytes from file and send it over the socket object from client > side in while loop until all content from file is read. > Almost ten years.

Re: Pickle file and send via socket

2022-02-18 Thread UTKARSH PANDEY
On Wednesday, August 8, 2012 at 8:37:33 PM UTC+5:30, lipska the kat wrote: > On 08/08/12 14:50, S.B wrote: > > On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote: > >> On 06/08/12 14:32, S.B wrote: > >> > [snip] > > Thank you so much ! > > The examples are very helpful. > > Wh

Re: Pickle file and send via socket

2012-08-08 Thread Oscar Benjamin
On 8 August 2012 16:07, lipska the kat wrote: > On 08/08/12 14:50, S.B wrote: > >> On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote: >> >>> On 06/08/12 14:32, S.B wrote: >>> >>> > [snip] > > > Thank you so much ! >> The examples are very helpful. >> What happens if I have a re

Re: Pickle file and send via socket

2012-08-08 Thread lipska the kat
On 08/08/12 14:50, S.B wrote: On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote: On 06/08/12 14:32, S.B wrote: [snip] Thank you so much ! The examples are very helpful. What happens if I have a regular text file I want to send via the network. Do I need to read the file an

Re: Pickle file and send via socket

2012-08-08 Thread S.B
On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote: > On 06/08/12 14:32, S.B 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

Re: Pickle file and send via socket

2012-08-08 Thread lipska the kat
On 06/08/12 14:32, S.B 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 an

Re: Pickle file and send via socket

2012-08-07 Thread lipska the kat
On 07/08/12 12:21, S.B wrote: Can anyone provide a simple code example of the client and server sides? Working on it lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle file and send via socket

2012-08-07 Thread S.B
On Monday, August 6, 2012 4:32:13 PM UTC+3, S.B 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

Re: Pickle file and send via socket

2012-08-06 Thread Christian Heimes
Am 06.08.2012 15:32, schrieb S.B: > 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

Re: Pickle file and send via socket

2012-08-06 Thread Nobody
On Mon, 06 Aug 2012 06:32:13 -0700, S.B wrote: > 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 so

Re: Pickle file and send via socket

2012-08-06 Thread Ramchandra Apte
You can use pickle.dumps and pickle.loads On 6 August 2012 19:17, Ramchandra Apte wrote: > This is *absolutely* possible. > Did you know that IDLE uses this very method when run i

Re: Pickle file and send via socket

2012-08-06 Thread Ramchandra Apte
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 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