Skip to main content

Thread: Python Twisted: Sending Binray File


zoinks!

seriously, i've been sending contents of small text file client python script, using twisted. , writing once again file, when try , send non plain text file via same method, connection closed message, take because i'm not reading file correctly?

code:
binray = open("datebase.db", 'rb')  binrayr = binray.read()  self.sendline(binrayr)
of course 'connection closed cleanly' message. can give example of how send such file?

bye.



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Python Twisted: Sending Binray File


Ubuntu

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO