<?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: ANDROID - zip file problem in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150181#M4951</link>
    <description>&lt;P&gt;How are you downloading the file when it does work? Are you using the&amp;nbsp;Dropbox web site? Can you compare the file you get that way to the file you get via the API? E.g., compare the file lengths and/or hashes.&lt;/P&gt;
&lt;P&gt;Some other things that would be helpful in debugging this:&lt;/P&gt;
&lt;P&gt;- the rest of the relevant code (e.g., what do you do with&amp;nbsp;mFos?)&lt;/P&gt;
&lt;P&gt;- any output/errors you get from the code&lt;/P&gt;</description>
    <pubDate>Sun, 27 Dec 2015 04:32:33 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-12-27T04:32:33Z</dc:date>
    <item>
      <title>ANDROID - zip file problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150180#M4950</link>
      <description>&lt;P&gt;Hello, I making android app with dropbox API and I have a problem. My app zips folder on android device and uploads it on dropbox, it works. If I download zip file from dropbox to my PC, I can extract it but if I download this file using dropbox api method getFile with code below, downloaded zip file is corrupted and archive showing error &lt;STRONG&gt;"end of central directory signature not found"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;protected Boolean doInBackground(Void... params) {&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt; String inPath = Environment.getExternalStorageDirectory() + dropboxFile;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; File file=new File(inPath);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FileOutputStream mFos = null;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt; try {&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt; mFos = new FileOutputStream(file);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; } catch (FileNotFoundException e)&lt;/EM&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt; return false;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt; try {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; dbAPI.getFile("/" + dropboxFile, null, mFos, null);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; } catch (DropboxException e) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; e.printStackTrace();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt; return true;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Can you help me please?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:37:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150180#M4950</guid>
      <dc:creator>DEXIT D.</dc:creator>
      <dc:date>2019-05-29T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: ANDROID - zip file problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150181#M4951</link>
      <description>&lt;P&gt;How are you downloading the file when it does work? Are you using the&amp;nbsp;Dropbox web site? Can you compare the file you get that way to the file you get via the API? E.g., compare the file lengths and/or hashes.&lt;/P&gt;
&lt;P&gt;Some other things that would be helpful in debugging this:&lt;/P&gt;
&lt;P&gt;- the rest of the relevant code (e.g., what do you do with&amp;nbsp;mFos?)&lt;/P&gt;
&lt;P&gt;- any output/errors you get from the code&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2015 04:32:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150181#M4951</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-27T04:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: ANDROID - zip file problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150182#M4952</link>
      <description>&lt;P&gt;Thanks for your reply. I found solution to this, problem was in download progress&amp;nbsp;because the file was not downloaded completely.&amp;nbsp;I've done a few things around and now it works.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 01:59:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ANDROID-zip-file-problem/m-p/150182#M4952</guid>
      <dc:creator>DEXIT D.</dc:creator>
      <dc:date>2015-12-30T01:59:12Z</dc:date>
    </item>
  </channel>
</rss>

