|
On Thu, Jun 29, 2017 at 9:22 AM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:
Some things to try:doesn't storlines() require 'rb'?
- Use mode 'r' instead of 'rb' when opening the file. (Plain 'r' is
the default and can be omitted.) The significance of this being that
in some contexts, buffering is different when dealing with text mode
versus binary mode.
https://stackoverflow.com/questions/17777745/python3-ftplib-storlines-error
- Rework the process so that you can use FTP's binary mode (via the
storbinary() method) instead. This is of course more involved, and
there are several very different approaches that fall under this
umbrella (for example, you could translate the data to EBCDIC in
Python and continue trying "direct" FTP, or you could zip up the data
and unzip on the i, etc.) but still not especially difficult, and
worth a try if the simpler measures fail.
Given that we're sending to a PF-SRC...I wouldn't expect FTP binary mode
to work...don't we need the ASCII<-->EBCDIC conversion done by the FTP
server on the i?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.