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?
of course 'connection closed cleanly' message. can give example of how send such file?code:binray = open("datebase.db", 'rb') binrayr = binray.read() self.sendline(binrayr)
bye.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Python Twisted: Sending Binray File
Ubuntu
Comments
Post a Comment