<?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 running the python(2.7) code below does not upload the complete (112Kb) file to ftp server in Conservation Questions</title>
    <link>https://community.esri.com/t5/conservation-questions/running-the-python-2-7-code-below-does-not-upload/m-p/854862#M18</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;flnm=today_date+&lt;SPAN style="color: #a5c261;"&gt;"-"&lt;/SPAN&gt;+&lt;SPAN style="color: #a5c261;"&gt;"03"&lt;/SPAN&gt;+&lt;SPAN style="color: #a5c261;"&gt;"0000"&lt;/SPAN&gt;+&lt;SPAN style="color: #a5c261;"&gt;"_sasiaffg_india_gauge_precip_report.csv"
&lt;/SPAN&gt;f = ftplib.FTP(&lt;SPAN style="color: #a5c261;"&gt;'192.168.14.187'&lt;/SPAN&gt;)
f.login(&lt;SPAN style="color: #a5c261;"&gt;'xxxx'&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;'IMD:140520:Xchg.ftp'&lt;/SPAN&gt;)
f.cwd(ftp_dir)
flname = os.path.join(svdir&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;flnm)
result = f.storbinary(&lt;SPAN style="color: #a5c261;"&gt;'STOR ' &lt;/SPAN&gt;+ flnm&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #8888c6;"&gt;open&lt;/SPAN&gt;(flname&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"rb"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:33:45 GMT</pubDate>
    <dc:creator>rahulsaxena</dc:creator>
    <dc:date>2021-12-12T10:33:45Z</dc:date>
    <item>
      <title>running the python(2.7) code below does not upload the complete (112Kb) file to ftp server</title>
      <link>https://community.esri.com/t5/conservation-questions/running-the-python-2-7-code-below-does-not-upload/m-p/854862#M18</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;flnm=today_date+&lt;SPAN style="color: #a5c261;"&gt;"-"&lt;/SPAN&gt;+&lt;SPAN style="color: #a5c261;"&gt;"03"&lt;/SPAN&gt;+&lt;SPAN style="color: #a5c261;"&gt;"0000"&lt;/SPAN&gt;+&lt;SPAN style="color: #a5c261;"&gt;"_sasiaffg_india_gauge_precip_report.csv"
&lt;/SPAN&gt;f = ftplib.FTP(&lt;SPAN style="color: #a5c261;"&gt;'192.168.14.187'&lt;/SPAN&gt;)
f.login(&lt;SPAN style="color: #a5c261;"&gt;'xxxx'&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;'IMD:140520:Xchg.ftp'&lt;/SPAN&gt;)
f.cwd(ftp_dir)
flname = os.path.join(svdir&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;flnm)
result = f.storbinary(&lt;SPAN style="color: #a5c261;"&gt;'STOR ' &lt;/SPAN&gt;+ flnm&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #8888c6;"&gt;open&lt;/SPAN&gt;(flname&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"rb"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/conservation-questions/running-the-python-2-7-code-below-does-not-upload/m-p/854862#M18</guid>
      <dc:creator>rahulsaxena</dc:creator>
      <dc:date>2021-12-12T10:33:45Z</dc:date>
    </item>
  </channel>
</rss>

