<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Python to upload large files to FTP in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473917#M37043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Austin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;ftp.storlines&lt;/STRONG&gt; try &lt;STRONG&gt;ftp.storbinary.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2019 19:39:29 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2019-06-13T19:39:29Z</dc:date>
    <item>
      <title>Using Python to upload large files to FTP</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473916#M37042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, I wrote a script so I can post a large zipped dataset up to an FTP site, but I&amp;nbsp;keep getting this return:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;File "C:/Users/wolf_ak/Desktop/Python/FTP Upload.py", line 17, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ftp.storlines('STOR ' +filename,myfile)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 497, in storlines&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;raise Error("got more than %d bytes" % self.maxline)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: got more than 8192 bytes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a workaround to this?&amp;nbsp;&amp;nbsp;The file I'm trying to post will be north of 70,000 KB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/450280_Python Issue.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any and all help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 19:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473916#M37042</guid>
      <dc:creator>AustinWolf</dc:creator>
      <dc:date>2019-06-13T19:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to upload large files to FTP</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473917#M37043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Austin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;ftp.storlines&lt;/STRONG&gt; try &lt;STRONG&gt;ftp.storbinary.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 19:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473917#M37043</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2019-06-13T19:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to upload large files to FTP</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473918#M37044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I'll give it a shot. Everything inside of the parentheses should stay the same?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 19:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473918#M37044</guid>
      <dc:creator>AustinWolf</dc:creator>
      <dc:date>2019-06-13T19:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to upload large files to FTP</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473919#M37045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, everything in the parentheses should stay the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 20:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473919#M37045</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2019-06-13T20:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to upload large files to FTP</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473920#M37046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it! You're a lifesaver!! Thanks Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 20:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-upload-large-files-to-ftp/m-p/473920#M37046</guid>
      <dc:creator>AustinWolf</dc:creator>
      <dc:date>2019-06-13T20:08:14Z</dc:date>
    </item>
  </channel>
</rss>

