it stops at 52 bytes for jpeg files, it uploads txt files fully but without newline symbols.. would very appreciate help with making this better
*solved _http://mail.python.org/pipermail/python-list/2001-June/089022.html
Printable View
it stops at 52 bytes for jpeg files, it uploads txt files fully but without newline symbols.. would very appreciate help with making this better
*solved _http://mail.python.org/pipermail/python-list/2001-June/089022.html
for jpegs, set the mode to binary.
Textfiles are different on Unix or Windows in terms of line ends: CR/LF or simply LF. You need to convert them from one format to the other if you transfer between different OS.
On Unix, dos2unix/unix2dos can be used, for Windows various editors support both formats.
HTH,
Richard